COIN-OR::LEMON - Graph Library

Changeset 2526:b7727edd44f2 in lemon-0.x for lemon/cycle_canceling.h


Ignore:
Timestamp:
11/28/07 18:51:02 (12 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3402
Message:

Redesign Circulation interface according to new flow interface
New greedy approach initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cycle_canceling.h

    r2509 r2526  
    324324
    325325      // Finding a feasible flow
    326       Circulation< Graph, Capacity, FlowMap, ConstMap<Edge, Capacity>,
    327                    CapacityRefMap, SupplyMap >
     326      Circulation< Graph, Capacity, ConstMap<Edge, Capacity>,
     327        CapacityRefMap, SupplyMap >::DefFlowMap<FlowMap>::Create
    328328        circulation( graph, constMap<Edge>((Capacity)0),
    329                      capacity, supply, flow );
    330       return circulation.run() == -1;
     329                     capacity, supply);
     330      circulation.flowMap(flowMap);
     331      return circulation.run();
    331332    }
    332333
Note: See TracChangeset for help on using the changeset viewer.