Changeset 2579:691ce54544c5 in lemon-0.x for lemon/min_cost_max_flow.h
- Timestamp:
- 02/25/08 13:35:06 (16 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3461
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/min_cost_max_flow.h
r2576 r2579 141 141 /// \pre \ref run() must be called before using this function. 142 142 const FlowMap& flowMap() const { 143 return _flow _result;143 return _flow; 144 144 } 145 145 … … 152 152 /// \pre \ref run() must be called before using this function. 153 153 const PotentialMap& potentialMap() const { 154 return _potential _result;154 return _potential; 155 155 } 156 156 … … 163 163 Cost totalCost() const { 164 164 Cost c = 0; 165 for (typename Graph::EdgeIt e( graph); e != INVALID; ++e)165 for (typename Graph::EdgeIt e(_graph); e != INVALID; ++e) 166 166 c += _flow[e] * _cost[e]; 167 167 return c;
Note: See TracChangeset
for help on using the changeset viewer.