# HG changeset patch # User Peter Kovacs # Date 1362071156 -3600 # Node ID 2f00ef323c2efff04537cb158691ecaf105b535f # Parent 6a8a688eacf6792cc374905079383edbba712e8f Rename DefFlowMap named parameter to SetFlowMap (#177) in EdmondsKarp according to Preflow diff -r 6a8a688eacf6 -r 2f00ef323c2e lemon/edmonds_karp.h --- a/lemon/edmonds_karp.h Thu Feb 28 18:17:53 2013 +0100 +++ b/lemon/edmonds_karp.h Thu Feb 28 18:05:56 2013 +0100 @@ -172,7 +172,7 @@ ///@{ template - struct DefFlowMapTraits : public Traits { + struct SetFlowMapTraits : public Traits { typedef T FlowMap; static FlowMap *createFlowMap(const Digraph&) { LEMON_ASSERT(false, "FlowMap is not initialized"); @@ -186,10 +186,9 @@ /// \ref named-templ-param "Named parameter" for setting FlowMap /// type template - struct DefFlowMap - : public EdmondsKarp > { - typedef EdmondsKarp > - Create; + struct SetFlowMap + : public EdmondsKarp > { + typedef EdmondsKarp > Create; }; /// @} diff -r 6a8a688eacf6 -r 2f00ef323c2e test/edmonds_karp_test.cc --- a/test/edmonds_karp_test.cc Thu Feb 28 18:17:53 2013 +0100 +++ b/test/edmonds_karp_test.cc Thu Feb 28 18:05:56 2013 +0100 @@ -83,7 +83,7 @@ bool b; ignore_unused_variable_warning(v,b); typedef EdmondsKarp - ::DefFlowMap + ::SetFlowMap ::Create EKType; EKType ek_test(g, cap, n, n); const EKType& const_ek_test = ek_test;