On Mon, 2005-03-14 at 16:09 -0500, Douglas Gregor wrote:
Alternatively, you can use a topological ordering of the vertices computed on the reversed graph. Check out the file dependency example in the BGL docs:
http://www.boost.org/libs/graph/doc/file_dependency_example.html
Thanks for the suggestion. It greatly simplified my algorithm. :)
Here is the extent of the algorithm as implemented:
Filter_Search::Filter_Search
(call_traitsinfrastructure::Component_Graph::ptr::param_type g)
:
m_graph (g)
{
// Create execution order and store in 'm_exec_order'
boost::topological_sort (g->get_Graph(),
std::front_inserter (m_exec_order));
}
// Execute node order using simple default dfs visitor.
void Filter_Search::operator()
(call_traits