... | ... |
@@ -445,7 +445,7 @@ |
445 | 445 |
/// outgoing flow. |
446 | 446 |
/// \return %False when the given \c flowMap is not a preflow. |
447 | 447 |
template <typename FlowMap> |
448 |
bool |
|
448 |
bool init(const FlowMap& flowMap) { |
|
449 | 449 |
createStructures(); |
450 | 450 |
|
451 | 451 |
for (ArcIt e(_graph); e != INVALID; ++e) { |
... | ... |
@@ -55,7 +55,7 @@ |
55 | 55 |
preflow_test.target(n); |
56 | 56 |
|
57 | 57 |
preflow_test.init(); |
58 |
preflow_test. |
|
58 |
preflow_test.init(cap); |
|
59 | 59 |
preflow_test.startFirstPhase(); |
60 | 60 |
preflow_test.startSecondPhase(); |
61 | 61 |
preflow_test.run(); |
... | ... |
@@ -153,7 +153,7 @@ |
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. |
|
156 |
preflow_test.init(flow); |
|
157 | 157 |
preflow_test.startFirstPhase(); |
158 | 158 |
|
159 | 159 |
CutMap min_cut1(g); |
0 comments (0 inline)