Changeset 986:e997802b855c in lemon-0.x for src/work/jacint/preflow.cc
- Timestamp:
- 11/13/04 13:53:28 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/jacint/preflow.cc
r921 r986 47 47 for(G.first(e); G.valid(e); G.next(e)) { 48 48 int c=cap[e]; 49 if (mincut[G. tail(e)] && !mincut[G.head(e)]) min_min_cut_value+=c;50 if (cut[G. tail(e)] && !cut[G.head(e)]) min_cut_value+=c;51 if (maxcut[G. tail(e)] && !maxcut[G.head(e)]) max_min_cut_value+=c;49 if (mincut[G.source(e)] && !mincut[G.target(e)]) min_min_cut_value+=c; 50 if (cut[G.source(e)] && !cut[G.target(e)]) min_cut_value+=c; 51 if (maxcut[G.source(e)] && !maxcut[G.target(e)]) max_min_cut_value+=c; 52 52 } 53 53 … … 87 87 for(G.first(e); G.valid(e); G.next(e)) { 88 88 int c=cap[e]; 89 if (mincut2[G. tail(e)] && !mincut2[G.head(e)]) min_min_cut2_value+=c;90 if (cut2[G. tail(e)] && !cut2[G.head(e)]) min_cut2_value+=c;91 if (maxcut2[G. tail(e)] && !maxcut2[G.head(e)]) max_min_cut2_value+=c;89 if (mincut2[G.source(e)] && !mincut2[G.target(e)]) min_min_cut2_value+=c; 90 if (cut2[G.source(e)] && !cut2[G.target(e)]) min_cut2_value+=c; 91 if (maxcut2[G.source(e)] && !maxcut2[G.target(e)]) max_min_cut2_value+=c; 92 92 } 93 93 … … 139 139 for(G.first(e); G.valid(e); G.next(e)) { 140 140 int c=cap[e]; 141 if (mincut3[G. tail(e)] && !mincut3[G.head(e)]) min_min_cut3_value+=c;142 if (cut3[G. tail(e)] && !cut3[G.head(e)]) min_cut3_value+=c;143 if (maxcut3[G. tail(e)] && !maxcut3[G.head(e)]) max_min_cut3_value+=c;144 if (actcut3[G. tail(e)] && !actcut3[G.head(e)]) act_min_cut3_value+=c;141 if (mincut3[G.source(e)] && !mincut3[G.target(e)]) min_min_cut3_value+=c; 142 if (cut3[G.source(e)] && !cut3[G.target(e)]) min_cut3_value+=c; 143 if (maxcut3[G.source(e)] && !maxcut3[G.target(e)]) max_min_cut3_value+=c; 144 if (actcut3[G.source(e)] && !actcut3[G.target(e)]) act_min_cut3_value+=c; 145 145 } 146 146 … … 196 196 for(G.first(e); G.valid(e); G.next(e)) { 197 197 int c=cap[e]; 198 if (mincut4[G. tail(e)] && !mincut4[G.head(e)]) min_min_cut4_value+=c;199 if (cut4[G. tail(e)] && !cut4[G.head(e)]) min_cut4_value+=c;200 if (maxcut4[G. tail(e)] && !maxcut4[G.head(e)]) max_min_cut4_value+=c;198 if (mincut4[G.source(e)] && !mincut4[G.target(e)]) min_min_cut4_value+=c; 199 if (cut4[G.source(e)] && !cut4[G.target(e)]) min_cut4_value+=c; 200 if (maxcut4[G.source(e)] && !maxcut4[G.target(e)]) max_min_cut4_value+=c; 201 201 } 202 202 … … 239 239 for(G.first(e); G.valid(e); G.next(e)) { 240 240 int c=cap[e]; 241 if (mincut5[G. tail(e)] && !mincut5[G.head(e)]) min_min_cut5_value+=c;242 if (cut5[G. tail(e)] && !cut5[G.head(e)]) min_cut5_value+=c;243 if (maxcut5[G. tail(e)] && !maxcut5[G.head(e)]) max_min_cut5_value+=c;241 if (mincut5[G.source(e)] && !mincut5[G.target(e)]) min_min_cut5_value+=c; 242 if (cut5[G.source(e)] && !cut5[G.target(e)]) min_cut5_value+=c; 243 if (maxcut5[G.source(e)] && !maxcut5[G.target(e)]) max_min_cut5_value+=c; 244 244 } 245 245
Note: See TracChangeset
for help on using the changeset viewer.