On Fri, 13 Aug 2010, Mike Douglass wrote:
I have
struct vertex_properties { blah blah }
struct edge_properties { blah blah }
struct graph_properties {
int bobo;
}
typedef adjacency_list < vecS, vecS, bidirectionalS, property< vertex_predecessor_t, vertex_t, vertex_properties >, property< edge_reverse_t, edge_t, edge_properties >, graph_properties > graph_t;
graph_t g;
But how can I access bobo?
g.bobo; does not compile (otherwise compiles OK).
To get the graph property, you can use the get_property() function, documented at URL:http://www.boost.org/doc/libs/1_43_0/libs/graph/doc/adjacency_list.html (near the bottom). Bundled graph properties are new (just added to the trunk in the past few weeks); I believe the syntax for those is "g[graph_bundle].bobo". -- Jeremiah Willcock