diff -r 741f3108a90f -r e997802b855c src/work/jacint/max_flow_test.cc --- a/src/work/jacint/max_flow_test.cc Sat Nov 13 12:24:01 2004 +0000 +++ b/src/work/jacint/max_flow_test.cc Sat Nov 13 12:53:28 2004 +0000 @@ -45,14 +45,14 @@ int min_min_cut_value=0; EdgeIt e; for(G.first(e); G.valid(e); G.next(e)) { - if (mincut[G.tail(e)] && !mincut[G.head(e)]) min_min_cut_value+=cap[e]; + if (mincut[G.source(e)] && !mincut[G.target(e)]) min_min_cut_value+=cap[e]; } Graph::NodeMap cut(G); max_flow_test_no_stack.minCut(cut); int min_cut_value=0; for(G.first(e); G.valid(e); G.next(e)) { - if (cut[G.tail(e)] && !cut[G.head(e)]) + if (cut[G.source(e)] && !cut[G.target(e)]) min_cut_value+=cap[e]; } @@ -60,7 +60,7 @@ max_flow_test_no_stack.maxMinCut(maxcut); int max_min_cut_value=0; for(G.first(e); G.valid(e); G.next(e)) { - if (maxcut[G.tail(e)] && !maxcut[G.head(e)]) + if (maxcut[G.source(e)] && !maxcut[G.target(e)]) max_min_cut_value+=cap[e]; } @@ -91,14 +91,14 @@ max_flow_test.minMinCut(mincut2); int min_min_cut_value2=0; for(G.first(e); G.valid(e); G.next(e)) { - if (mincut2[G.tail(e)] && !mincut2[G.head(e)]) min_min_cut_value2+=cap[e]; + if (mincut2[G.source(e)] && !mincut2[G.target(e)]) min_min_cut_value2+=cap[e]; } Graph::NodeMap cut2(G); max_flow_test.minCut(cut2); int min_cut_value2=0; for(G.first(e); G.valid(e); G.next(e)) { - if (cut2[G.tail(e)] && !cut2[G.head(e)]) + if (cut2[G.source(e)] && !cut2[G.target(e)]) min_cut_value2+=cap[e]; } @@ -106,7 +106,7 @@ max_flow_test.maxMinCut(maxcut2); int max_min_cut_value2=0; for(G.first(e); G.valid(e); G.next(e)) { - if (maxcut2[G.tail(e)] && !maxcut2[G.head(e)]) + if (maxcut2[G.source(e)] && !maxcut2[G.target(e)]) max_min_cut_value2+=cap[e]; } @@ -130,14 +130,14 @@ max_flow_test3.minMinCut(mincut3); int min_min_cut_value3=0; for(G.first(e); G.valid(e); G.next(e)) { - if (mincut3[G.tail(e)] && !mincut3[G.head(e)]) min_min_cut_value3+=cap[e]; + if (mincut3[G.source(e)] && !mincut3[G.target(e)]) min_min_cut_value3+=cap[e]; } Graph::NodeMap cut3(G); max_flow_test3.minCut(cut3); int min_cut_value3=0; for(G.first(e); G.valid(e); G.next(e)) { - if (cut3[G.tail(e)] && !cut3[G.head(e)]) + if (cut3[G.source(e)] && !cut3[G.target(e)]) min_cut_value3+=cap[e]; } @@ -145,7 +145,7 @@ max_flow_test3.maxMinCut(maxcut3); int max_min_cut_value3=0; for(G.first(e); G.valid(e); G.next(e)) { - if (maxcut3[G.tail(e)] && !maxcut3[G.head(e)]) + if (maxcut3[G.source(e)] && !maxcut3[G.target(e)]) max_min_cut_value3+=cap[e]; }