|
Boost Users : |
Subject: Re: [Boost-users] [BGL] how to use write_graphviz_dp with graph bundle properties
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2013-11-09 13:23:05
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);
> }
There does not appear to be a way to write graph properties with
write_graphviz_dp (although there is a way to read them). I'm not sure
why, so you might want to file a bug report about that so I'll remember to
fix it.
-- Jeremiah Willcock
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net