Changeset 607:9ad8d2122b50 in lemon1.2 for test/min_cost_flow_test.cc
 Timestamp:
 04/03/09 13:46:16 (12 years ago)
 Branch:
 default
 Phase:
 public
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

test/min_cost_flow_test.cc
r606 r607 78 78 79 79 // Check the interface of an MCF algorithm 80 template <typename GR, typename Value>80 template <typename GR, typename Flow, typename Cost> 81 81 class McfClassConcept 82 82 { … … 117 117 typedef typename GR::Node Node; 118 118 typedef typename GR::Arc Arc; 119 typedef concepts::ReadMap<Node, Value> NM; 120 typedef concepts::ReadMap<Arc, Value> AM; 119 typedef concepts::ReadMap<Node, Flow> NM; 120 typedef concepts::ReadMap<Arc, Flow> FAM; 121 typedef concepts::ReadMap<Arc, Cost> CAM; 121 122 122 123 const GR &g; 123 const AM &lower;124 const AM &upper;125 const AM &cost;124 const FAM &lower; 125 const FAM &upper; 126 const CAM &cost; 126 127 const NM ⊃ 127 128 const Node &n; 128 129 const Arc &a; 129 const Value&k;130 Valuev;130 const Flow &k; 131 Flow v; 131 132 bool b; 132 133 … … 207 208 // Check the interfaces 208 209 { 209 typedef int Value; 210 typedef int Flow; 211 typedef int Cost; 210 212 // TODO: This typedef should be enabled if the standard maps are 211 213 // reference maps in the graph concepts (See #190). … … 214 216 typedef ListDigraph GR; 215 217 /**/ 216 checkConcept< McfClassConcept<GR, Value>,217 NetworkSimplex<GR, Value> >();218 checkConcept< McfClassConcept<GR, Flow, Cost>, 219 NetworkSimplex<GR, Flow, Cost> >(); 218 220 } 219 221
Note: See TracChangeset
for help on using the changeset viewer.