# HG changeset patch # User Peter Kovacs # Date 1362071628 -3600 # Node ID 08f2dc76e82e8b919459d9cfc95577ef6238c536 # Parent 2f00ef323c2efff04537cb158691ecaf105b535f Rename flow init functions according to Preflow (#177) diff -r 2f00ef323c2e -r 08f2dc76e82e lemon/edmonds_karp.h --- a/lemon/edmonds_karp.h Thu Feb 28 18:05:56 2013 +0100 +++ b/lemon/edmonds_karp.h Thu Feb 28 18:13:48 2013 +0100 @@ -311,7 +311,7 @@ /// and the target, the incoming flow should be equal to the /// outgoing flow. template - 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 - bool checkedFlowInit(const FlowMap& flowMap) { + bool checkedInit(const FlowMap& flowMap) { createStructures(); for (ArcIt e(_graph); e != INVALID; ++e) { _flow->set(e, flowMap[e]); diff -r 2f00ef323c2e -r 08f2dc76e82e test/edmonds_karp_test.cc --- a/test/edmonds_karp_test.cc Thu Feb 28 18:05:56 2013 +0100 +++ b/test/edmonds_karp_test.cc Thu Feb 28 18:13:48 2013 +0100 @@ -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);