Boost logo

Boost Users :

From: Raindog (raindog_at_[hidden])
Date: 2008-08-25 21:37:24


Carsten Høyer wrote:
> On Søn, August 24, 2008 18:45, Raindog wrote:
>
>> Carsten Hoyer wrote:
>>
>>
>>> Hi
>>> Just turned to Boost - What a fantastic library :)
>>>
>>>
>>> I have a question about the construction of a Graph. I can't figure out how
>>> to use boost to represent a graph where each Vertex has several outs. F.ex Vertex 1
>>> has out 1, 2 and 3. Vertex A has in a, b and c. I can then make edges going from
>>> 1-a, 1-b, 2-b etc. Like F.ex
>>> http://messe.harmony-central.com/Musikmesse05/Content/Native_Instruments/PR/Reakto
>>> r-5-interface-lg.jpg Reaktor
>>>
>>>
>>> Any hints?
>>> Thank you
>>> Carsten
>>>
>>>
>>>
>> add_edge(node1, node2, g); add_edge(node1, node3, g); add_edge(node1, node4, g);
>>
>
> That wouldn´t be enough would it? Then i only have the connection between the two
> nodes, but i need a little more information embedded. Every node has a sub-input and
> sub-output. So it should be something like add_edge(node1, output1, node3, input1,
> g); Which, as i write it, makes me think i should derive a class from the kind of
> list i choose to implement the graph with. Right?
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
I believe that there is an overload that allows associated properties
with the created nodes.


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