test/preflow_test.cc
changeset 780 580af8cf2f6a
parent 585 65fbcf2f978a
child 877 141f9c0db4a3
equal deleted inserted replaced
6:7a1a916d12b2 7:9fb91d5a8a92
    92             ::SetElevator<Elev>
    92             ::SetElevator<Elev>
    93             ::SetStandardElevator<LinkedElev>
    93             ::SetStandardElevator<LinkedElev>
    94             ::Create PreflowType;
    94             ::Create PreflowType;
    95   PreflowType preflow_test(g, cap, n, n);
    95   PreflowType preflow_test(g, cap, n, n);
    96   const PreflowType& const_preflow_test = preflow_test;
    96   const PreflowType& const_preflow_test = preflow_test;
       
    97   
       
    98   const PreflowType::Elevator& elev = const_preflow_test.elevator();
       
    99   preflow_test.elevator(const_cast<PreflowType::Elevator&>(elev));
       
   100   PreflowType::Tolerance tol = const_preflow_test.tolerance();
       
   101   preflow_test.tolerance(tol);
    97 
   102 
    98   preflow_test
   103   preflow_test
    99     .capacityMap(cap)
   104     .capacityMap(cap)
   100     .flowMap(flow)
   105     .flowMap(flow)
   101     .source(n)
   106     .source(n)