COIN-OR::LEMON - Graph Library

Changeset 2582:4f1ac622bb7a in lemon-0.x for lemon/min_cost_max_flow.h


Ignore:
Timestamp:
02/28/08 03:55:23 (16 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3464
Message:

Avoid map copy in MinCostMaxFlow?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/min_cost_max_flow.h

    r2579 r2582  
    5555  /// \warning
    5656  /// - Edge capacities and costs should be \e non-negative \e integers.
    57   ///   However \c CostMap::Value must be signed type.
    5857  /// - \c CapacityMap::Value must be convertible to \c CostMap::Value.
     58  /// - \c CostMap::Value must be signed type.
    5959  ///
    6060  /// \author Peter Kovacs
     
    129129      MinCostFlowImpl mcf( _graph, _capacity, _cost,
    130130                           _source, _target, preflow.flowValue() );
    131       mcf.run();
    132       _flow = mcf.flowMap();
    133       _potential = mcf.potentialMap();
     131      mcf.flowMap(_flow).potentialMap(_potential).run();
    134132    }
    135133
Note: See TracChangeset for help on using the changeset viewer.