COIN-OR::LEMON - Graph Library

Changeset 2579:691ce54544c5 in lemon-0.x for lemon/min_cost_max_flow.h


Ignore:
Timestamp:
02/25/08 13:35:06 (16 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3461
Message:

Bug fixes in min cost flow files.
Use enum type instead of static constants in NetworkSimplex? to avoid
linker errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/min_cost_max_flow.h

    r2576 r2579  
    141141    /// \pre \ref run() must be called before using this function.
    142142    const FlowMap& flowMap() const {
    143       return _flow_result;
     143      return _flow;
    144144    }
    145145
     
    152152    /// \pre \ref run() must be called before using this function.
    153153    const PotentialMap& potentialMap() const {
    154       return _potential_result;
     154      return _potential;
    155155    }
    156156
     
    163163    Cost totalCost() const {
    164164      Cost c = 0;
    165       for (typename Graph::EdgeIt e(graph); e != INVALID; ++e)
     165      for (typename Graph::EdgeIt e(_graph); e != INVALID; ++e)
    166166        c += _flow[e] * _cost[e];
    167167      return c;
Note: See TracChangeset for help on using the changeset viewer.