test/preflow_test.cc
changeset 1285 6c8e2d8712d8
parent 1173 d216e1c8b3fa
parent 1257 3e711ee55d31
child 1263 b9887ae63df0
equal deleted inserted replaced
15:83b06e975c83 19:39f41c3a0723
    84   CapMap cap;
    84   CapMap cap;
    85   FlowMap flow;
    85   FlowMap flow;
    86   CutMap cut;
    86   CutMap cut;
    87   VType v;
    87   VType v;
    88   bool b;
    88   bool b;
    89   ignore_unused_variable_warning(v,b);
    89   ::lemon::ignore_unused_variable_warning(v,b);
    90 
    90 
    91   typedef Preflow<Digraph, CapMap>
    91   typedef Preflow<Digraph, CapMap>
    92             ::SetFlowMap<FlowMap>
    92             ::SetFlowMap<FlowMap>
    93             ::SetElevator<Elev>
    93             ::SetElevator<Elev>
    94             ::SetStandardElevator<LinkedElev>
    94             ::SetStandardElevator<LinkedElev>
   118   v = const_preflow_test.flow(e);
   118   v = const_preflow_test.flow(e);
   119   const FlowMap& fm = const_preflow_test.flowMap();
   119   const FlowMap& fm = const_preflow_test.flowMap();
   120   b = const_preflow_test.minCut(n);
   120   b = const_preflow_test.minCut(n);
   121   const_preflow_test.minCutMap(cut);
   121   const_preflow_test.minCutMap(cut);
   122 
   122 
   123   ignore_unused_variable_warning(fm);
   123   ::lemon::ignore_unused_variable_warning(fm);
   124 }
   124 }
   125 
   125 
   126 int cutValue (const SmartDigraph& g,
   126 int cutValue (const SmartDigraph& g,
   127               const SmartDigraph::NodeMap<bool>& cut,
   127               const SmartDigraph::NodeMap<bool>& cut,
   128               const SmartDigraph::ArcMap<int>& cap) {
   128               const SmartDigraph::ArcMap<int>& cap) {