#include "stdafx.h" #include #include #include #include //#include int main() { typedef boost::adjacency_list G; typedef boost::graph_traits::vertex_descriptor V; typedef std::map Map; G g; std::vector sorted; Map m; boost::add_vertex(g); boost::topological_sort(g, std::back_inserter(sorted), color_map(boost::make_assoc_property_map(m))); //boost::assign::list_of(0); return 0; }