On Sat, 9 Nov 2013, Jeremiah Willcock wrote:I have now fixed this problem in the Boost trunk. To write a graph property, here is the kind of property call you should use:
On Sat, 9 Nov 2013, Pablo Madoery wrote:
Hello. I know how to use write_graphviz_dp with vertices and edges
bundle properties but i can't figure out how to print the graph_bundle
property of a graph.
(snip)
void printGraph(Graph graph, string file)
{
ofstream ofs(file.c_str());
dynamic_properties dp;
dp.property("node_id", get(vertex_index, graph));
dp.property("label", get(&EdgeInfo::weight, graph));
///dp.property("label", get(&graph[graph_bundle].duration)); ->error
write_graphviz_dp(ofs, graph, dp);
}
dp.property("label",
make_static_property_map<Graph*>(get_property(graph, &GraphInfo::duration)));
-- Jeremiah Willcock
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users