test/preflow_test.cc
changeset 1146 81f70097df81
parent 1008 d216e1c8b3fa
parent 1083 3e711ee55d31
equal deleted inserted replaced
12:83b06e975c83 14: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) {