COIN-OR::LEMON - Graph Library

Changeset 2509:a8081c9cd96a in lemon-0.x for lemon/cycle_canceling.h


Ignore:
Timestamp:
11/14/07 07:28:08 (12 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3374
Message:

Small changes in the min. cost flow classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cycle_canceling.h

    r2457 r2509  
    2626
    2727#include <vector>
     28#include <lemon/graph_adaptor.h>
    2829#include <lemon/circulation.h>
    29 #include <lemon/graph_adaptor.h>
    3030
    3131/// \brief The used cycle-canceling method.
     
    8080  /// - Edge capacities and costs should be nonnegative integers.
    8181  ///   However \c CostMap::Value should be signed type.
    82   /// - Supply values should be integers.
     82  /// - Supply values should be signed integers.
    8383  /// - \c LowerMap::Value must be convertible to
    8484  ///   \c CapacityMap::Value and \c CapacityMap::Value must be
     
    132132    public:
    133133
    134       typedef typename MapBase<ResEdge, Cost>::Value Value;
    135       typedef typename MapBase<ResEdge, Cost>::Key Key;
    136 
    137134      ResCostMap(const CostMap &_cost) : cost_map(_cost) {}
    138135
    139       Value operator[](const Key &e) const {
     136      Cost operator[](const ResEdge &e) const {
    140137        return ResGraph::forward(e) ? cost_map[e] : -cost_map[e];
    141138      }
Note: See TracChangeset for help on using the changeset viewer.