
31 Jan
2006
31 Jan
'06
11:37 a.m.
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?