[Lemon-commits] Peter Kovacs: Rename flowInit() to init() in Pre...
Lemon HG
hg at lemon.cs.elte.hu
Sun Nov 30 10:51:21 CET 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/db3251947eba
changeset: 407:db3251947eba
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Sun Nov 30 00:48:07 2008 +0100
description:
Rename flowInit() to init() in Preflow (#176)
diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
lemon/preflow.h | 2 +-
test/preflow_test.cc | 4 ++--
diffs (33 lines):
diff -r 624e673efa76 -r db3251947eba lemon/preflow.h
--- a/lemon/preflow.h Fri Nov 21 14:26:58 2008 +0000
+++ b/lemon/preflow.h Sun Nov 30 00:48:07 2008 +0100
@@ -445,7 +445,7 @@
/// outgoing flow.
/// \return %False when the given \c flowMap is not a preflow.
template <typename FlowMap>
- bool flowInit(const FlowMap& flowMap) {
+ bool init(const FlowMap& flowMap) {
createStructures();
for (ArcIt e(_graph); e != INVALID; ++e) {
diff -r 624e673efa76 -r db3251947eba test/preflow_test.cc
--- a/test/preflow_test.cc Fri Nov 21 14:26:58 2008 +0000
+++ b/test/preflow_test.cc Sun Nov 30 00:48:07 2008 +0100
@@ -55,7 +55,7 @@
preflow_test.target(n);
preflow_test.init();
- preflow_test.flowInit(cap);
+ preflow_test.init(cap);
preflow_test.startFirstPhase();
preflow_test.startSecondPhase();
preflow_test.run();
@@ -153,7 +153,7 @@
int flow_value=preflow_test.flowValue();
for(ArcIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
- preflow_test.flowInit(flow);
+ preflow_test.init(flow);
preflow_test.startFirstPhase();
CutMap min_cut1(g);
More information about the Lemon-commits
mailing list