COIN-OR::LEMON - Graph Library

Changeset 2533:aea952a1af99 in lemon-0.x for lemon/cycle_canceling.h


Ignore:
Timestamp:
12/05/07 02:43:02 (17 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3410
Message:

Bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cycle_canceling.h

    r2526 r2533  
    8787  /// \author Peter Kovacs
    8888
    89 template < typename Graph,
    90            typename LowerMap = typename Graph::template EdgeMap<int>,
    91            typename CapacityMap = LowerMap,
    92            typename CostMap = typename Graph::template EdgeMap<int>,
    93            typename SupplyMap = typename Graph::template NodeMap
    94                                 <typename CapacityMap::Value> >
     89  template < typename Graph,
     90             typename LowerMap = typename Graph::template EdgeMap<int>,
     91             typename CapacityMap = LowerMap,
     92             typename CostMap = typename Graph::template EdgeMap<int>,
     93             typename SupplyMap = typename Graph::template NodeMap
     94                                  <typename CapacityMap::Value> >
    9595  class CycleCanceling
    9696  {
     
    324324
    325325      // Finding a feasible flow
    326       Circulation< Graph, Capacity, ConstMap<Edge, Capacity>,
    327         CapacityRefMap, SupplyMap >::DefFlowMap<FlowMap>::Create
    328         circulation( graph, constMap<Edge>((Capacity)0),
    329                      capacity, supply);
    330       circulation.flowMap(flowMap);
    331       return circulation.run();
     326      Circulation< Graph, ConstMap<Edge, Capacity>, CapacityRefMap,
     327                   SupplyMap >
     328        circulation( graph, constMap<Edge>((Capacity)0), capacity,
     329                     supply );
     330      circulation.flowMap(flow);
     331      return circulation.run() == -1;
    332332    }
    333333
Note: See TracChangeset for help on using the changeset viewer.