equal
deleted
inserted
replaced
320 protected: |
320 protected: |
321 const MapGraphWrapper* g; |
321 const MapGraphWrapper* g; |
322 typename MapGraphWrapper::template NodeMap<int> dist; |
322 typename MapGraphWrapper::template NodeMap<int> dist; |
323 public: |
323 public: |
324 DistanceMap(MapGraphWrapper& _g) : g(&_g), dist(*g, g->nodeNum()) { } |
324 DistanceMap(MapGraphWrapper& _g) : g(&_g), dist(*g, g->nodeNum()) { } |
325 void set(const typename MapGraphWrapper::Node& n, int a) { dist[n]=a; } |
325 void set(const typename MapGraphWrapper::Node& n, int a) { |
|
326 dist.set(n, a); |
|
327 } |
326 int operator[](const typename MapGraphWrapper::Node& n) |
328 int operator[](const typename MapGraphWrapper::Node& n) |
327 { return dist[n]; } |
329 { return dist[n]; } |
328 // int get(const typename MapGraphWrapper::Node& n) const { |
330 // int get(const typename MapGraphWrapper::Node& n) const { |
329 // return dist[n]; } |
331 // return dist[n]; } |
330 // bool get(const typename MapGraphWrapper::Edge& e) const { |
332 // bool get(const typename MapGraphWrapper::Edge& e) const { |