
23 Jun
2011
23 Jun
'11
8:06 p.m.
On Thu, 23 Jun 2011, Jeremiah Willcock wrote:
On Wed, 22 Jun 2011, David Doria wrote:
I think you will need some kind of property to store the vertex names from Graphviz; you might be able to use null_property_map for that (from
) though. -- Jeremiah Willcock
The following works, but it seems very confusing. I tried the two commented lines separately but they don't compile. Is this the recommended method?
You don't need to modify the graph definition at all. I think this will work:
graph_t graph;
boost::dynamic_properties dp; dp.property("node_id", boost::make_null_property
);
Sorry -- that needs to be make_null_property<...>().
bool status = boost::read_graphviz(stream,graph,dp,"node_id");
-- Jeremiah Willcock