Boost logo

Boost Users :

Subject: [Boost-users] [BGL] Is vertex_descriptor always integer?
From: Ireneusz Szcześniak (irek.szczesniak_at_[hidden])
Date: 2015-12-04 10:07:58


Hi,

In my code I do:

vector_property_map<edge_descriptor> pred(num_vertices(g));
auto rep = record_edge_predecessors(pred, on_edge_relaxed());
auto dv = make_dijkstra_visitor(rep);
dijkstra_shortest_paths(g, s, visitor(dv));

But this assumes that the vertex_descriptor is integer, since I'm
using vector_property.

Does this assumption always hold, or should I choose the type of the
property map based on the graph type?

Thanks & best,
Irek


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