# HG changeset patch # User Peter Kovacs # Date 1228002487 -3600 # Node ID db3251947ebad6aa61a198363983034cc05c1c1b # Parent 624e673efa760f16a74fd941b320cc11c1890f5e Rename flowInit() to init() in Preflow (#176) 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 - 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);