It works !!!!!!!
Thank you very much !!!!!!!!!


2013/11/9 Jeremiah Willcock <jewillco@crest.iu.edu>
On Sat, 9 Nov 2013, Jeremiah Willcock wrote:

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);
}


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:

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