30 std::vector<VertexDesc> rev_order;
31 std::vector<boost::default_color_type> color(boost::num_vertices(g));
32 boost::topological_sort(
34 std::back_inserter(rev_order),
35 boost::color_map(boost::make_iterator_property_map(color.begin(), vertex_index_map))
37 std::vector<NodeID> order;
38 order.reserve(rev_order.size());
39 for (
auto it = rev_order.rbegin(); it != rev_order.rend(); ++it) {
40 order.push_back(get_node_id(*it));
auto topological_sort(const GraphWrapper &G)
Deprecated free-function alias for G.topological_sort().
Definition topological_sort.hpp:24