# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1300318533 -3600
# Node ID f112c18bc304761d339c4ffc4976bba5ca348da6
# Parent  141f9c0db4a3892de5feca4ebdbc8776191567cd
Bug fix in CostScaling (#417)

diff -r 141f9c0db4a3 -r f112c18bc304 lemon/cost_scaling.h
--- a/lemon/cost_scaling.h	Sat Mar 06 14:35:12 2010 +0000
+++ b/lemon/cost_scaling.h	Thu Mar 17 00:35:33 2011 +0100
@@ -907,7 +907,7 @@
           startPush();
           break;
         case AUGMENT:
-          startAugment();
+          startAugment(_res_node_num - 1);
           break;
         case PARTIAL_AUGMENT:
           startAugment(MAX_PATH_LENGTH);
@@ -1084,7 +1084,7 @@
     }
 
     /// Execute the algorithm performing augment and relabel operations
-    void startAugment(int max_length = std::numeric_limits<int>::max()) {
+    void startAugment(int max_length) {
       // Paramters for heuristics
       const int EARLY_TERM_EPSILON_LIMIT = 1000;
       const double GLOBAL_UPDATE_FACTOR = 3.0;