Bug fix (Circulation interface changed).
authorkpeter
Wed, 19 Dec 2007 22:23:28 +0000
changeset 25445143b01bf1d5
parent 2543 a0443c411220
child 2545 2bed3e806e1e
Bug fix (Circulation interface changed).
lemon/cycle_canceling.h
     1.1 --- a/lemon/cycle_canceling.h	Wed Dec 19 09:16:22 2007 +0000
     1.2 +++ b/lemon/cycle_canceling.h	Wed Dec 19 22:23:28 2007 +0000
     1.3 @@ -325,10 +325,10 @@
     1.4        // Finding a feasible flow
     1.5        Circulation< Graph, ConstMap<Edge, Capacity>, CapacityRefMap,
     1.6  		   SupplyMap >
     1.7 -	circulation( graph, constMap<Edge>((Capacity)0), capacity, 
     1.8 +	circulation( graph, constMap<Edge>((Capacity)0), capacity,
     1.9  		     supply );
    1.10        circulation.flowMap(flow);
    1.11 -      return circulation.run() == -1;
    1.12 +      return circulation.run();
    1.13      }
    1.14  
    1.15  #ifdef LIMITED_CYCLE_CANCELING