| ... |
... |
@@ -52,13 +52,13 @@
|
| 52 |
52 |
flow = preflow_test.flowMap();
|
| 53 |
53 |
preflow_test.flowMap(flow);
|
| 54 |
54 |
preflow_test.source(n);
|
| 55 |
55 |
preflow_test.target(n);
|
| 56 |
56 |
|
| 57 |
57 |
preflow_test.init();
|
| 58 |
|
preflow_test.flowInit(cap);
|
|
58 |
preflow_test.init(cap);
|
| 59 |
59 |
preflow_test.startFirstPhase();
|
| 60 |
60 |
preflow_test.startSecondPhase();
|
| 61 |
61 |
preflow_test.run();
|
| 62 |
62 |
preflow_test.runMinCut();
|
| 63 |
63 |
|
| 64 |
64 |
preflow_test.flowValue();
|
| ... |
... |
@@ -150,13 +150,13 @@
|
| 150 |
150 |
FlowMap flow(g);
|
| 151 |
151 |
for(ArcIt e(g); e!=INVALID; ++e) flow[e] = preflow_test.flowMap()[e];
|
| 152 |
152 |
|
| 153 |
153 |
int flow_value=preflow_test.flowValue();
|
| 154 |
154 |
|
| 155 |
155 |
for(ArcIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
|
| 156 |
|
preflow_test.flowInit(flow);
|
|
156 |
preflow_test.init(flow);
|
| 157 |
157 |
preflow_test.startFirstPhase();
|
| 158 |
158 |
|
| 159 |
159 |
CutMap min_cut1(g);
|
| 160 |
160 |
preflow_test.minCutMap(min_cut1);
|
| 161 |
161 |
min_cut_value=cutValue(g,min_cut1,cap);
|
| 162 |
162 |
|