|
Boost Users : |
Subject: [Boost-users] [BGL] Searching for index_map
From: caligulaemperorofrome_at_[hidden]
Date: 2009-06-15 02:23:11
When I run my program the output gives an id to each edge and vertex like so.
<edge id="e262" source="n46" target="n43">
This must be the index. So how can I access this index?
When I put the following in my code it fails to compile.
error: âindex_mapâ was not declared in this scope
for (tie(edge_iter, edges_end) = edges(g); edge_iter != edges_end; ++edge_iter) {
    Â
      get(index_map, *edge_iter, g);
}
Do I need "get_property(index_map) or something?
My Graph declaration is as follows.
typedef adjacency_list < listS, vecS, directedS >::edge_descriptor edge_t;
typedef adjacency_list < listS, vecS, directedS >::vertex_descriptor vertex_t;
Â
typedef adjacency_list < listS, vecS, directedS,
property< vertex_predecessor_t, vertex_t, vertex_properties >,
property< edge_reverse_t, edge_t, edge_properties > > graph_t;
Thanks
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