lemon/capacity_scaling.h
changeset 1270 dceba191c00d
parent 1254 c5cd8960df74
child 1298 a78e5b779b69
equal deleted inserted replaced
26:d684a69dd5c3 27:49e23fc3da9a
     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-2010
     5  * Copyright (C) 2003-2013
     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
   836         _delta = 1;
   836         _delta = 1;
   837       }
   837       }
   838 
   838 
   839       return OPTIMAL;
   839       return OPTIMAL;
   840     }
   840     }
   841     
   841 
   842     // Check if the upper bound is greater or equal to the lower bound
   842     // Check if the upper bound is greater or equal to the lower bound
   843     // on each arc.
   843     // on each arc.
   844     bool checkBoundMaps() {
   844     bool checkBoundMaps() {
   845       for (int j = 0; j != _res_arc_num; ++j) {
   845       for (int j = 0; j != _res_arc_num; ++j) {
   846         if (_upper[j] < _lower[j]) return false;
   846         if (_upper[j] < _lower[j]) return false;