COIN-OR::LEMON - Graph Library

Changeset 1058:2f00ef323c2e in lemon-main


Ignore:
Timestamp:
02/28/13 18:05:56 (12 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

    r1057 r1058  
    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

    r1056 r1058  
    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.