[Lemon-commits] Peter Kovacs: Rename flow init functions accordi...

Lemon HG hg at lemon.cs.elte.hu
Tue Mar 19 15:42:34 CET 2013


details:   http://lemon.cs.elte.hu/hg/lemon/rev/08f2dc76e82e
changeset: 1227:08f2dc76e82e
user:      Peter Kovacs <kpeter [at] inf.elte.hu>
date:      Thu Feb 28 18:13:48 2013 +0100
description:
	Rename flow init functions according to Preflow (#177)

diffstat:

 lemon/edmonds_karp.h      |  4 ++--
 test/edmonds_karp_test.cc |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/lemon/edmonds_karp.h b/lemon/edmonds_karp.h
--- a/lemon/edmonds_karp.h
+++ b/lemon/edmonds_karp.h
@@ -311,7 +311,7 @@
     /// and the target, the incoming flow should be equal to the
     /// outgoing flow.
     template <typename FlowMap>
-    void flowInit(const FlowMap& flowMap) {
+    void init(const FlowMap& flowMap) {
       createStructures();
       for (ArcIt e(_graph); e != INVALID; ++e) {
 	_flow->set(e, flowMap[e]);
@@ -335,7 +335,7 @@
     /// \return \c false when the given \c flowMap does not contain a
     /// feasible flow.
     template <typename FlowMap>
-    bool checkedFlowInit(const FlowMap& flowMap) {
+    bool checkedInit(const FlowMap& flowMap) {
       createStructures();
       for (ArcIt e(_graph); e != INVALID; ++e) {
 	_flow->set(e, flowMap[e]);
diff --git a/test/edmonds_karp_test.cc b/test/edmonds_karp_test.cc
--- a/test/edmonds_karp_test.cc
+++ b/test/edmonds_karp_test.cc
@@ -186,7 +186,7 @@
   int flow_value=ek_test.flowValue();
 
   for(ArcIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
-  ek_test.flowInit(flow);
+  ek_test.init(flow);
   ek_test.start();
 
   CutMap min_cut1(g);



More information about the Lemon-commits mailing list