test/preflow_test.cc
branch1.2
changeset 1277 e13061207f85
parent 1175 1fe3b4ad8caa
parent 1259 8b2d4e5d96e4
equal deleted inserted replaced
16:3a0fe1618b93 20:72f921ad8ca7
    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) {