|
Boost Users : |
From: Grégoire Dooms (dooms_at_[hidden])
Date: 2005-11-18 01:15:16
Stephane Grabli wrote:
>typedef adjacency_list<listS, listS, directedS,VertexBundle> 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
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