Changeset 1297:c0c2f5c87aa6 in lemon for lemon/capacity_scaling.h
- Timestamp:
- 10/17/13 09:30:57 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/capacity_scaling.h
r1296 r1297 161 161 162 162 // Parameters of the problem 163 bool _ha ve_lower;163 bool _has_lower; 164 164 Value _sum_supply; 165 165 … … 354 354 template <typename LowerMap> 355 355 CapacityScaling& lowerMap(const LowerMap& map) { 356 _ha ve_lower = true;356 _has_lower = true; 357 357 for (ArcIt a(_graph); a != INVALID; ++a) { 358 358 _lower[_arc_idf[a]] = map[a]; … … 540 540 _cost[j] = _forward[j] ? 1 : -1; 541 541 } 542 _ha ve_lower = false;542 _has_lower = false; 543 543 return *this; 544 544 } … … 751 751 const Value MAX = std::numeric_limits<Value>::max(); 752 752 int last_out; 753 if (_ha ve_lower) {753 if (_has_lower) { 754 754 for (int i = 0; i != _root; ++i) { 755 755 last_out = _first_out[i+1]; … … 854 854 855 855 // Handle non-zero lower bounds 856 if (_ha ve_lower) {856 if (_has_lower) { 857 857 int limit = _first_out[_root]; 858 858 for (int j = 0; j != limit; ++j) {
Note: See TracChangeset
for help on using the changeset viewer.