src/work/marci/edmonds_karp.h
changeset 413 9cb93f692e92
parent 389 770cc1f4861f
child 466 cd40ecf4d2a9
equal deleted inserted replaced
7:e56bd38ee561 8:97127ea96b62
   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 {