« Return to Thread: [BGL] Access bundle graph properties

[BGL] Access bundle graph properties

by Bugzilla from s0238762@sms.ed.ac.uk :: Rate this Message:

Reply to Author | View in Thread

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 mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: [BGL] Access bundle graph properties