test/preflow_test.cc
branch1.1
changeset 808 bdfc038f364c
parent 797 c18ed26f016c
parent 807 3e711ee55d31
equal deleted inserted replaced
10:ca4baead9cce 12:ac7920ee2f42
    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>
   113   v = const_preflow_test.flow(e);
   113   v = const_preflow_test.flow(e);
   114   const FlowMap& fm = const_preflow_test.flowMap();
   114   const FlowMap& fm = const_preflow_test.flowMap();
   115   b = const_preflow_test.minCut(n);
   115   b = const_preflow_test.minCut(n);
   116   const_preflow_test.minCutMap(cut);
   116   const_preflow_test.minCutMap(cut);
   117 
   117 
   118   ignore_unused_variable_warning(fm);
   118   ::lemon::ignore_unused_variable_warning(fm);
   119 }
   119 }
   120 
   120 
   121 int cutValue (const SmartDigraph& g,
   121 int cutValue (const SmartDigraph& g,
   122               const SmartDigraph::NodeMap<bool>& cut,
   122               const SmartDigraph::NodeMap<bool>& cut,
   123               const SmartDigraph::ArcMap<int>& cap) {
   123               const SmartDigraph::ArcMap<int>& cap) {