Boost logo

Boost Users :

From: John Paulus (wilycoder_at_[hidden])
Date: 2006-11-29 09:21:33


Could someone explain with the code below generates an error? The code
worked fine with a standard boost graph (ie not a subgraph<>)......

I can create the sub graph, but cannot access the bundled properties data:

typedef adjacency_list<listS,
                       listS,
                       undirectedS,
                       VertexData,
                       property<edge_index_t, int, EdgeData> >
GraphType;

typedef subgraph<GraphType> SubGraphType;

SubGraphType SubGraph;

SubGraphType::vertex_descriptor V = add_vertex(SubGraph);
SubGraph[V].ID=1; ////ERROR!!!!!!

Sincerely,
John



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