Changeset 2509:a8081c9cd96a in lemon-0.x for lemon/cycle_canceling.h
- Timestamp:
- 11/14/07 07:28:08 (16 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3374
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/cycle_canceling.h
r2457 r2509 26 26 27 27 #include <vector> 28 #include <lemon/graph_adaptor.h> 28 29 #include <lemon/circulation.h> 29 #include <lemon/graph_adaptor.h>30 30 31 31 /// \brief The used cycle-canceling method. … … 80 80 /// - Edge capacities and costs should be nonnegative integers. 81 81 /// However \c CostMap::Value should be signed type. 82 /// - Supply values should be integers.82 /// - Supply values should be signed integers. 83 83 /// - \c LowerMap::Value must be convertible to 84 84 /// \c CapacityMap::Value and \c CapacityMap::Value must be … … 132 132 public: 133 133 134 typedef typename MapBase<ResEdge, Cost>::Value Value;135 typedef typename MapBase<ResEdge, Cost>::Key Key;136 137 134 ResCostMap(const CostMap &_cost) : cost_map(_cost) {} 138 135 139 Value operator[](const Key&e) const {136 Cost operator[](const ResEdge &e) const { 140 137 return ResGraph::forward(e) ? cost_map[e] : -cost_map[e]; 141 138 }
Note: See TracChangeset
for help on using the changeset viewer.