Boost logo

Boost Users :

Subject: Re: [Boost-users] Assigning vertex properties
From: Anders Wallin (anders.e.e.wallin_at_[hidden])
Date: 2011-06-07 15:19:11

> I am trying to assign names to vertices.
> I made a typedef boost::property<boost::vertex_name_t, std::string>
> VertexProperty; and tried to set a label for vertex 0 in two ways:

Hi David,

I never really understood how to use the property maps
correctly/efficienty, but I've found using "bundled properties" fairly
Like so:

if you want/need to use unsigned ints as vertex descriptors then you
need to store the vertices in a vector, like so:


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at