Boost logo

Boost Users :

From: Ferng, Andrew D (andrew.d.ferng_at_[hidden])
Date: 2008-02-18 18:57:09


This might help...
http://www.boost.org/libs/graph/doc/bundles.html

-----Original Message-----
From: Ioannis Nousias [mailto:s0238762_at_[hidden]]
Sent: Monday, February 18, 2008 3:55 PM
To: boost-users_at_[hidden]
Subject: [Boost-users] [BGL] Access bundle graph properties

How does one access a bundle graph property in adjacency_list ?

for example

struct VertexProperties
{
    int index;
    bool status;
};

struct EdgeProperties
{
    int index;
    bool status;
};

struct GraphProperties
{
    int something;
};

boost::adjacency_list
<
    boost::listS,
    boost::vecS,
    boost::directedS,
    VertexProperties,
    EdgeProperties,
    GraphProperties
> graph;

if 'v' is a vertex then I can do 'grap[v].status' to get that vertex
property. But what about the graph properties? I've tried
'graph.something' but that didn't work :(

Any suggestions ?

regards,
Ioannis


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