|
Boost Users : |
From: Marcel Martin (marcel.martin_at_[hidden])
Date: 2006-11-16 19:01:31
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
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