Re: [Boost-users] Boost Graph Library and Graphviz
Hi Giuseppe, The BGL GraphViz reader does handle arbitrary graph, vertex, and edge properties. I am attaching an example program that demonstrates how to handle the example that you present below. Cheers, ron On Jul 8, 2008, at 9:57 AM, Doug Gregor wrote:
On Jul 8, 2008, at 6:28 AM, Giuseppe Di Guglielmo wrote:
Dear all, I am using BGL and Graphviz dot-representation of graph. I'd like to add more properties to graph represented via dot-language. For example consider this simple graph
digraph { graph [name="GRAPH"]
a [label="NODE_A", root="1"] b [label="NODE_B", root="0"
a -> b [label="EDGE_1"] b -> c [lable="EDGE_2"] }
I read it with READ_GRAPHVIZ http://www.boost.org/doc/libs/1_35_0/libs/graph/doc/ read_graphviz.html
If now I will add one more property to graph, for example
digraph { graph [name="GRAPH", identifier="CX2A1Z"] ... }
How can I retrieve the value for identifier property?
participants (1)
-
Ronald Garcia