Boost logo

Boost Users :

Subject: Re: [Boost-users] Vertex Weights!!!
From: Anders Wallin (anders.e.e.wallin_at_[hidden])
Date: 2011-11-24 03:14:28


> On Wed, 23 Nov 2011, Nouf M. wrote:
>> Hello,
>> I have a graph that contains:
>> - Vertices with 1.name 2.weight
>> - Edges with 1.name 2.weight
>> I couldnt figure out how to store the weights of the vertices. Is it
>> possible to do that? if yes, then please tell
>> me how...
> You can use bundled properties for the vertex weights, just like you would
> do for edge weights.  There does not appear to be a vertex weight
> non-bundled property, but you can use one of the similar ones if you want.

In case you were looking for a simple example with bundled properties,
this might help:
http://programmingexamples.net/wiki/CPP/Boost/BGL/BundledProperties


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