Rename flow init functions according to Preflow (#177)
authorPeter Kovacs <kpeter@inf.elte.hu>
Thu, 28 Feb 2013 18:13:48 +0100
changeset 105908f2dc76e82e
parent 1058 2f00ef323c2e
child 1060 45befc97b1bc
Rename flow init functions according to Preflow (#177)
lemon/edmonds_karp.h
test/edmonds_karp_test.cc
     1.1 --- a/lemon/edmonds_karp.h	Thu Feb 28 18:05:56 2013 +0100
     1.2 +++ b/lemon/edmonds_karp.h	Thu Feb 28 18:13:48 2013 +0100
     1.3 @@ -311,7 +311,7 @@
     1.4      /// and the target, the incoming flow should be equal to the
     1.5      /// outgoing flow.
     1.6      template <typename FlowMap>
     1.7 -    void flowInit(const FlowMap& flowMap) {
     1.8 +    void init(const FlowMap& flowMap) {
     1.9        createStructures();
    1.10        for (ArcIt e(_graph); e != INVALID; ++e) {
    1.11  	_flow->set(e, flowMap[e]);
    1.12 @@ -335,7 +335,7 @@
    1.13      /// \return \c false when the given \c flowMap does not contain a
    1.14      /// feasible flow.
    1.15      template <typename FlowMap>
    1.16 -    bool checkedFlowInit(const FlowMap& flowMap) {
    1.17 +    bool checkedInit(const FlowMap& flowMap) {
    1.18        createStructures();
    1.19        for (ArcIt e(_graph); e != INVALID; ++e) {
    1.20  	_flow->set(e, flowMap[e]);
     2.1 --- a/test/edmonds_karp_test.cc	Thu Feb 28 18:05:56 2013 +0100
     2.2 +++ b/test/edmonds_karp_test.cc	Thu Feb 28 18:13:48 2013 +0100
     2.3 @@ -186,7 +186,7 @@
     2.4    int flow_value=ek_test.flowValue();
     2.5  
     2.6    for(ArcIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
     2.7 -  ek_test.flowInit(flow);
     2.8 +  ek_test.init(flow);
     2.9    ek_test.start();
    2.10  
    2.11    CutMap min_cut1(g);