[BGL] List of edges as property type

I'm trying to add a "list of edges" as an edge property type like so. typedef adjacency_list < listS, vecS, directedS > Traits; typedef adjacency_list < listS, vecS, directedS, vertex_properties, property < edge_list_t, std::listTraits::edge_descriptor, edge_properties > > > graph_t; But the compiler says : error: ‘edge_list_t’ was not declared in this scope So I think I need to add edge_list_t to the set of property tags. I think there is a method like BOOST_INSTALL PROPERTY ( edge_list_t ). But I think I read somewhere that thats the old way. Can someone tell me the new way to do it? PS: How can I tell which version of boost I am using? Thanks - Caligula

On Mon, Jun 15, 2009 at 11:37 PM,
I'm trying to add a "list of edges" as an edge property type like so.
typedef adjacency_list < listS, vecS, directedS > Traits;
typedef adjacency_list < listS, vecS, directedS, vertex_properties, property < edge_list_t, std::listTraits::edge_descriptor, edge_properties > > > graph_t;
It would probably be easier to use bundled properties. http://www.boost.org/doc/libs/1_38_0/libs/graph/doc/bundles.html As for the version, you could look at boost/version.hpp. Andrew Sutton andrew.n.sutton@gmail.com
participants (2)
-
Andrew Sutton
-
caligulaemperorofrome@yahoo.com