Changeset 1058:2f00ef323c2e in lemon-main
- Timestamp:
- 02/28/13 18:05:56 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/edmonds_karp.h
r1057 r1058 173 173 174 174 template <typename T> 175 struct DefFlowMapTraits : public Traits {175 struct SetFlowMapTraits : public Traits { 176 176 typedef T FlowMap; 177 177 static FlowMap *createFlowMap(const Digraph&) { … … 187 187 /// type 188 188 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; 193 192 }; 194 193 -
test/edmonds_karp_test.cc
r1056 r1058 84 84 ignore_unused_variable_warning(v,b); 85 85 typedef EdmondsKarp<Digraph, CapMap> 86 :: DefFlowMap<FlowMap>86 ::SetFlowMap<FlowMap> 87 87 ::Create EKType; 88 88 EKType ek_test(g, cap, n, n);
Note: See TracChangeset
for help on using the changeset viewer.