drawing custom BGL graph with graphviz
问题 I'm new to Boost graph library and I try to draw a graph using graphviz. #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graphviz.hpp> #include <boost/utility.hpp> // for boost::tie #include <iostream> #include <utility> // for std::pair using namespace boost; using namespace std; class V {}; class C {}; void draw_test(){ typedef boost::adjacency_list<boost::listS, boost::listS, boost::bidirectionalS, V, C > MyGraph; typedef boost::graph_traits<MyGraph>::vertex_descriptor