# HG changeset patch # User Peter Kovacs # Date 2008-11-30 00:48:07 # Node ID db3251947ebad6aa61a198363983034cc05c1c1b # Parent 624e673efa760f16a74fd941b320cc11c1890f5e Rename flowInit() to init() in Preflow (#176) diff --git a/lemon/preflow.h b/lemon/preflow.h --- a/lemon/preflow.h +++ b/lemon/preflow.h @@ -445,7 +445,7 @@ /// outgoing flow. /// \return %False when the given \c flowMap is not a preflow. template - bool flowInit(const FlowMap& flowMap) { + bool init(const FlowMap& flowMap) { createStructures(); for (ArcIt e(_graph); e != INVALID; ++e) { diff --git a/test/preflow_test.cc b/test/preflow_test.cc --- a/test/preflow_test.cc +++ b/test/preflow_test.cc @@ -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);