
On Thursday 16 November 2006 16:06, Doug Gregor wrote:
I include my code below. It compiles cleanly if I don't use subgraph, i.e. just declare the adjacency_list.
The error I'm seeing is coming from the lack of an edge_index property for the edges. If one adds that edge_index property, subgraph should work.
In case anyone else is wondering how to actually add the edge_index property, this is how I finally managed to get it to compile (using bundled and internal properties at the same time): typedef adjacency_list<vecS, vecS, undirectedS, VertexProperty, property<edge_index_t, int, EdgeProperty> > PlainGraph; typedef subgraph<PlainGraph> Graph; I tried to add a field named "edge_index" to the EdgeProperty struct at first, but that doesn't work. Marcel