
Jonas Gabriel wrote:
Good afternoon,
Inside a dijkstra visitor I would like to change the edge weights at some point, so in my visitor I'm trying to make a property map called weight :
template
void examine_edge (Edge e, Graph& g) { typename property_map ::type weight; weight=get(edge_weight, g);
The "Graph" you get will actually be a const Graph. So you should
probably make the parameter to examine_edge a const Graph& and then
either use the "const_type" of the property map:
template