25 #ifndef INCLUDE_TOPOLOGICALSORT_PGR_TOPOLOGICALSORT_HPP_
26 #define INCLUDE_TOPOLOGICALSORT_PGR_TOPOLOGICALSORT_HPP_
29 #include <boost/config.hpp>
30 #include <boost/graph/adjacency_list.hpp>
31 #include <boost/graph/graph_traits.hpp>
32 #include <boost/typeof/typeof.hpp>
33 #include <boost/graph/topological_sort.hpp>
62 std::vector< pgr_topologicalSort_t >
65 std::vector< pgr_topologicalSort_t > results;
67 typedef typename std::vector< V > container;
71 CHECK_FOR_INTERRUPTS();
73 boost::topological_sort(graph.graph, std::back_inserter(c));
75 typename std::vector< V >::reverse_iterator ii;
76 for (ii = c.rbegin(); ii != c.rend(); ++ii) {
80 results.push_back(tmp);
88 std::vector<pgr_topologicalSort_t>
91 return generatetopologicalSort(
96 #endif // INCLUDE_TOPOLOGICALSORT_PGR_TOPOLOGICALSORT_HPP_