
22 Jun
2011
22 Jun
'11
6:54 p.m.
On Wed, 22 Jun 2011, David Doria wrote:
If I have a graph with no vertex properties or edge properties:
adjacency_list
can I read a .dot file into it with read_graphviz?
I tried:
dynamic_properties dp; Graph g; read_graphviz(fileinput, g, dp);
but it throws an exception "Property not found: node_id".
I tried to add
property_map
::type name = get(vertex_name, g); dp.property("node_id",name); but I get a compiler error "No match for operator<<"
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