
28 Jun
2007
28 Jun
'07
11:30 a.m.
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<class DynamicMap> class gds_visitor : public dijkstra_visitor<> { public:
gds_visitor(DynamicMap input):dynamic(input){}
....
template
void examine_edge (Edge e, Graph& g) { typename property_map ::type weight; weight=get(edge_weight, g); std::cout << "An edge is being examined..." << "\n"; }
protected: DynamicMap dynamic; };
typedef adjacency_list
where Graph:
property
typedef std::pair
Edge;
But it is not compiling, mentioning a problem with weight 'soperator = . Thank you in advance, Jonas Gabriel