Changeset 987:87f7c54892df in lemon-0.x for src/lemon/min_cost_flow.h
- Timestamp:
- 11/13/04 18:07:10 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1377
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/min_cost_flow.h
r986 r987 60 60 class MinCostFlow { 61 61 62 typedef typename LengthMap::Value TypeLength;62 typedef typename LengthMap::Value Length; 63 63 64 64 //Warning: this should be integer type 65 typedef typename CapacityMap::Value TypeCapacity;65 typedef typename CapacityMap::Value Capacity; 66 66 67 67 typedef typename Graph::Node Node; … … 95 95 const NodeMap &pot; 96 96 public : 97 typedef typename LengthMap::Key Type KeyType;98 typedef typename LengthMap::Value Type ValueType;97 typedef typename LengthMap::Key Key; 98 typedef typename LengthMap::Value Value; 99 99 100 100 ModLengthMap(const ResGW& _g, … … 102 102 g(_g), /*rev(_rev),*/ length(_length), pot(_pot) { } 103 103 104 Value Typeoperator[](typename ResGW::Edge e) const {104 Value operator[](typename ResGW::Edge e) const { 105 105 if (g.forward(e)) 106 106 return length[e]-(pot[g.target(e)]-pot[g.source(e)]);
Note: See TracChangeset
for help on using the changeset viewer.