COIN-OR::LEMON - Graph Library

Changeset 1226:2f00ef323c2e in lemon


Ignore:
Timestamp:
02/28/13 18:05:56 (11 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Rename DefFlowMap? named parameter to SetFlowMap? (#177)
in EdmondsKarp? according to Preflow

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/edmonds_karp.h

    r1225 r1226  
    173173
    174174    template <typename T>
    175     struct DefFlowMapTraits : public Traits {
     175    struct SetFlowMapTraits : public Traits {
    176176      typedef T FlowMap;
    177177      static FlowMap *createFlowMap(const Digraph&) {
     
    187187    /// type
    188188    template <typename T>
    189     struct DefFlowMap
    190       : public EdmondsKarp<Digraph, CapacityMap, DefFlowMapTraits<T> > {
    191       typedef EdmondsKarp<Digraph, CapacityMap, DefFlowMapTraits<T> >
    192       Create;
     189    struct SetFlowMap
     190      : public EdmondsKarp<Digraph, CapacityMap, SetFlowMapTraits<T> > {
     191      typedef EdmondsKarp<Digraph, CapacityMap, SetFlowMapTraits<T> > Create;
    193192    };
    194193
  • test/edmonds_karp_test.cc

    r1224 r1226  
    8484  ignore_unused_variable_warning(v,b);
    8585  typedef EdmondsKarp<Digraph, CapMap>
    86               ::DefFlowMap<FlowMap>
     86              ::SetFlowMap<FlowMap>
    8787              ::Create EKType;
    8888  EKType ek_test(g, cap, n, n);
Note: See TracChangeset for help on using the changeset viewer.