[BGL] Trying to use subgraph
I've been trying to work out how to use the subgraph adapter. I've come to realize that in order to use it, my primary graph must *itself* be an object of the subgraph type (unintuitive).
However, I'm getting a static assertion error that edge_index is an unknown property. I had *thought* that an adjacency_list
However, I'm getting a static assertion error that edge_index is an unknown property. I had *thought* that an adjacency_list
would not have that issue, but apparently I was wrong. The page here: http://www.boost.org/doc/libs/1_39_0/libs/graph/doc/subgraph.html says "we add an edge index property to the adjacency list", but the code which follows demonstrates no such thing.
No it does not. As you've figured out, adjacency_list
a bit mysterious to me. Can anyone shed some light on this?
A bundled property is basically just a stucture or class that you associate
with a vertex or edge. By supplying a class, you can "bundle" a number of
properties together. This is generally thought to be much easier than using
the internal properties (of which there is an example written above).
struct EdgeBundle {
int distance;
int resistance;
};
typedef adjacency_list
participants (2)
-
Andrew Sutton
-
Lindley M French