Changeset 1102:330264b171cf in lemon-main
- Timestamp:
- 10/17/13 09:29:37 (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- lemon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/capacity_scaling.h
r1070 r1102 357 357 for (ArcIt a(_graph); a != INVALID; ++a) { 358 358 _lower[_arc_idf[a]] = map[a]; 359 _lower[_arc_idb[a]] = map[a];360 359 } 361 360 return *this; … … 837 836 } 838 837 839 // Check if the upper bound is greater or equal to the lower bound840 // on each arc.838 // Check if the upper bound is greater than or equal to the lower bound 839 // on each forward arc. 841 840 bool checkBoundMaps() { 842 841 for (int j = 0; j != _res_arc_num; ++j) { 843 if (_ upper[j] < _lower[j]) return false;842 if (_forward[j] && _upper[j] < _lower[j]) return false; 844 843 } 845 844 return true; … … 858 857 int limit = _first_out[_root]; 859 858 for (int j = 0; j != limit; ++j) { 860 if ( !_forward[j]) _res_cap[j] += _lower[j];859 if (_forward[j]) _res_cap[_reverse[j]] += _lower[j]; 861 860 } 862 861 } -
lemon/cost_scaling.h
r1070 r1102 371 371 for (ArcIt a(_graph); a != INVALID; ++a) { 372 372 _lower[_arc_idf[a]] = map[a]; 373 _lower[_arc_idb[a]] = map[a];374 373 } 375 374 return *this; … … 903 902 } 904 903 905 // Check if the upper bound is greater or equal to the lower bound906 // on each arc.904 // Check if the upper bound is greater than or equal to the lower bound 905 // on each forward arc. 907 906 bool checkBoundMaps() { 908 907 for (int j = 0; j != _res_arc_num; ++j) { 909 if (_ upper[j] < _lower[j]) return false;908 if (_forward[j] && _upper[j] < _lower[j]) return false; 910 909 } 911 910 return true; … … 990 989 int limit = _first_out[_root]; 991 990 for (int j = 0; j != limit; ++j) { 992 if ( !_forward[j]) _res_cap[j] += _lower[j];991 if (_forward[j]) _res_cap[_reverse[j]] += _lower[j]; 993 992 } 994 993 } -
lemon/cycle_canceling.h
r1070 r1102 282 282 for (ArcIt a(_graph); a != INVALID; ++a) { 283 283 _lower[_arc_idf[a]] = map[a]; 284 _lower[_arc_idb[a]] = map[a];285 284 } 286 285 return *this; … … 785 784 } 786 785 787 // Check if the upper bound is greater or equal to the lower bound788 // on each arc.786 // Check if the upper bound is greater than or equal to the lower bound 787 // on each forward arc. 789 788 bool checkBoundMaps() { 790 789 for (int j = 0; j != _res_arc_num; ++j) { 791 if (_ upper[j] < _lower[j]) return false;790 if (_forward[j] && _upper[j] < _lower[j]) return false; 792 791 } 793 792 return true; … … 839 838 int limit = _first_out[_root]; 840 839 for (int j = 0; j != limit; ++j) { 841 if ( !_forward[j]) _res_cap[j] += _lower[j];840 if (_forward[j]) _res_cap[_reverse[j]] += _lower[j]; 842 841 } 843 842 } -
lemon/network_simplex.h
r1070 r1102 1236 1236 } 1237 1237 1238 // Check if the upper bound is greater or equal to the lower bound1238 // Check if the upper bound is greater than or equal to the lower bound 1239 1239 // on each arc. 1240 1240 bool checkBoundMaps() {
Note: See TracChangeset
for help on using the changeset viewer.