test/circulation_test.cc
branch1.1
changeset 1096 bcb6e4402a6e
parent 658 85cb3aa71cce
child 1172 c18ed26f016c
equal deleted inserted replaced
5:c6eafc5cc36e 8:465fc97859da
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2009
     5  * Copyright (C) 2003-2011
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
    79             ::SetElevator<Elev>
    79             ::SetElevator<Elev>
    80             ::SetStandardElevator<LinkedElev>
    80             ::SetStandardElevator<LinkedElev>
    81             ::Create CirculationType;
    81             ::Create CirculationType;
    82   CirculationType circ_test(g, lcap, ucap, supply);
    82   CirculationType circ_test(g, lcap, ucap, supply);
    83   const CirculationType& const_circ_test = circ_test;
    83   const CirculationType& const_circ_test = circ_test;
    84    
    84 
    85   circ_test
    85   circ_test
    86     .lowerMap(lcap)
    86     .lowerMap(lcap)
    87     .upperMap(ucap)
    87     .upperMap(ucap)
    88     .supplyMap(supply)
    88     .supplyMap(supply)
    89     .flowMap(flow);
    89     .flowMap(flow);
    95 
    95 
    96   v = const_circ_test.flow(a);
    96   v = const_circ_test.flow(a);
    97   const FlowMap& fm = const_circ_test.flowMap();
    97   const FlowMap& fm = const_circ_test.flowMap();
    98   b = const_circ_test.barrier(n);
    98   b = const_circ_test.barrier(n);
    99   const_circ_test.barrierMap(bar);
    99   const_circ_test.barrierMap(bar);
   100   
   100 
   101   ignore_unused_variable_warning(fm);
   101   ignore_unused_variable_warning(fm);
   102 }
   102 }
   103 
   103 
   104 template <class G, class LM, class UM, class DM>
   104 template <class G, class LM, class UM, class DM>
   105 void checkCirculation(const G& g, const LM& lm, const UM& um,
   105 void checkCirculation(const G& g, const LM& lm, const UM& um,