On Tue, 21 Jun 2011, David Doria wrote:
boost::write_graphviz_dp(std::cout, g, dp, "style");
The last argument here shouldn't be "style" -- it should be the default "node_id" or something else that can be used to identify vertices in the graph.
return 0; }
However, I get an exception "dynamic property get cannot retrieve value for property: style."
I'm not sure what the issue is for that -- try changing the call to write_graphviz_dp and see if it recurs.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I tried both: boost::write_graphviz_dp(std::cout, g, dp, "node_id"); and boost::write_graphviz_dp(std::cout, g, dp);
and both produce the exception "dynamic property cannot retrieve value for property: "node_id".
You will also need dp.property("node_id", get(vertex_index, g)); before the write_graphviz_dp call. -- Jeremiah Willcock