1.1 --- a/lemon/preflow.h Fri Nov 21 14:26:58 2008 +0000
1.2 +++ b/lemon/preflow.h Sun Nov 30 00:48:07 2008 +0100
1.3 @@ -445,7 +445,7 @@
1.4 /// outgoing flow.
1.5 /// \return %False when the given \c flowMap is not a preflow.
1.6 template <typename FlowMap>
1.7 - bool flowInit(const FlowMap& flowMap) {
1.8 + bool init(const FlowMap& flowMap) {
1.9 createStructures();
1.10
1.11 for (ArcIt e(_graph); e != INVALID; ++e) {
2.1 --- a/test/preflow_test.cc Fri Nov 21 14:26:58 2008 +0000
2.2 +++ b/test/preflow_test.cc Sun Nov 30 00:48:07 2008 +0100
2.3 @@ -55,7 +55,7 @@
2.4 preflow_test.target(n);
2.5
2.6 preflow_test.init();
2.7 - preflow_test.flowInit(cap);
2.8 + preflow_test.init(cap);
2.9 preflow_test.startFirstPhase();
2.10 preflow_test.startSecondPhase();
2.11 preflow_test.run();
2.12 @@ -153,7 +153,7 @@
2.13 int flow_value=preflow_test.flowValue();
2.14
2.15 for(ArcIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
2.16 - preflow_test.flowInit(flow);
2.17 + preflow_test.init(flow);
2.18 preflow_test.startFirstPhase();
2.19
2.20 CutMap min_cut1(g);