18 Nov
2005
18 Nov
'05
6:15 a.m.
Stephane Grabli wrote:
typedef adjacency_list
Graph; with: struct VertexBundle{ int id; };
How should I merge these two types of declarations? Is there a way to define the required vertex_index as a bundle property and to use it to define my component map afterward?
yes use : struct Node{ int id; int index; } then you can access the vertex property map using get(&Node::index, g)) instead of get (vertex_index,g). Also have a look at http://www.boost.org/libs/graph/doc/bundles.html HTH, -- Grégoire Dooms