COIN-OR::LEMON - Graph Library

Changeset 987:87f7c54892df in lemon-0.x for src/lemon/min_cost_flow.h


Ignore:
Timestamp:
11/13/04 18:07:10 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1377
Message:

Naming changes:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/min_cost_flow.h

    r986 r987  
    6060  class MinCostFlow {
    6161
    62     typedef typename LengthMap::ValueType Length;
     62    typedef typename LengthMap::Value Length;
    6363
    6464    //Warning: this should be integer type
    65     typedef typename CapacityMap::ValueType Capacity;
     65    typedef typename CapacityMap::Value Capacity;
    6666   
    6767    typedef typename Graph::Node Node;
     
    9595      const NodeMap &pot;
    9696    public :
    97       typedef typename LengthMap::KeyType KeyType;
    98       typedef typename LengthMap::ValueType ValueType;
     97      typedef typename LengthMap::Key Key;
     98      typedef typename LengthMap::Value Value;
    9999
    100100      ModLengthMap(const ResGW& _g,
     
    102102        g(_g), /*rev(_rev),*/ length(_length), pot(_pot) { }
    103103       
    104       ValueType operator[](typename ResGW::Edge e) const {     
     104      Value operator[](typename ResGW::Edge e) const {     
    105105        if (g.forward(e))
    106106          return  length[e]-(pot[g.target(e)]-pot[g.source(e)]);   
Note: See TracChangeset for help on using the changeset viewer.