[BGL] problems with depth_first_search

Hello list members,
I tries to use 'depth_first_search' in a very simple manner but I get an weird compilation error.
Here's a snippet of my code:
typedef adjacency_list

On Wed, Jul 9, 2008 at 6:25 PM, M. Siebeneicher
typedef adjacency_list
BGL_Graph; // Vertex is a bundled property BGL_Graph g(...) typedef boost::property_map
::type VertexIndexMap; VertexIndexMap vertex_id = boost::get(boost::vertex_index, g);
vertex_index is a property included in vecS but not in listS container. You have to provide your own vertex_index map. This is a classical error, and you can find a solution in this mailing list archives... -- Johan
participants (2)
-
Johan Oudinet
-
M. Siebeneicher