Boost logo

Boost Users :

From: Jef Driesen (jefdriesen_at_[hidden])
Date: 2006-01-31 06:37:08

Suppose I have defined the following graph:

typedef boost::adjacency_list<
    boost::setS, // Adjacency list
    boost::setS, // Vertex list
    boost::undirectedS, // Undirected graph
    unsigned int, // Vertex property (unique label)
    boost::no_property, // Edge property
    unsigned int, // Graph property (next unique label)
    boost::listS // Edge list
> graph;

How do I access the graph property? For the vertex property this is a
very simple operation:

graph g = ...;
vertex_descriptor u = ...;
vertex_property label = g[u];

But I can't find a way to access property associated with my graph. How
can I do this?

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