Boost logo

Boost Users :

Subject: Re: [Boost-users] Vertex Weights!!!
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-11-23 13:03:20


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.

-- Jeremiah Willcock


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