Boost logo

Boost Users :

From: Ronald Garcia (garcia_at_[hidden])
Date: 2008-07-08 13:20:39


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?
>>
>>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net