bugs
authormarci
Wed, 12 May 2004 13:55:37 +0000
changeset 6242e2618612b68
parent 623 cd4296da1643
child 625 28634fadbf9a
bugs
src/hugo/graph_wrapper.h
     1.1 --- a/src/hugo/graph_wrapper.h	Wed May 12 13:54:14 2004 +0000
     1.2 +++ b/src/hugo/graph_wrapper.h	Wed May 12 13:55:37 2004 +0000
     1.3 @@ -1235,19 +1235,21 @@
     1.4      class EdgeMap {
     1.5        typename Graph::template EdgeMap<T> forward_map, backward_map; 
     1.6      public:
     1.7 +      typedef T ValueType;
     1.8 +      typedef Edge KeyType;
     1.9        EdgeMap(const ResGraphWrapper<Graph, Number, CapacityMap, FlowMap>& _G) : forward_map(*(_G.graph)), backward_map(*(_G.graph)) { }
    1.10        EdgeMap(const ResGraphWrapper<Graph, Number, CapacityMap, FlowMap>& _G, T a) : forward_map(*(_G.graph), a), backward_map(*(_G.graph), a) { }
    1.11        void set(Edge e, T a) { 
    1.12  	if (!e.backward) 
    1.13 -	  forward_map.set(e.out, a); 
    1.14 +	  forward_map.set(e/*.out*/, a); 
    1.15  	else 
    1.16 -	  backward_map.set(e.in, a); 
    1.17 +	  backward_map.set(e/*.in*/, a); 
    1.18        }
    1.19        T operator[](Edge e) const { 
    1.20  	if (!e.backward) 
    1.21 -	  return forward_map[e.out]; 
    1.22 +	  return forward_map[e/*.out*/]; 
    1.23  	else 
    1.24 -	  return backward_map[e.in]; 
    1.25 +	  return backward_map[e/*.in*/]; 
    1.26        }
    1.27  //       T get(Edge e) const { 
    1.28  // 	if (e.out_or_in)