# HG changeset patch # User Peter Kovacs # Date 1258069168 -3600 # Node ID 072ec8120958cfeec887f076b1c1add2a939657e # Parent 7ef7a5fbb85d640f25d112921cb258e54d6f320d Small bug fixes (#180) diff -r 7ef7a5fbb85d -r 072ec8120958 lemon/capacity_scaling.h --- a/lemon/capacity_scaling.h Fri Nov 13 00:37:55 2009 +0100 +++ b/lemon/capacity_scaling.h Fri Nov 13 00:39:28 2009 +0100 @@ -681,7 +681,7 @@ // Initialize the algorithm ProblemType init() { - if (_node_num == 0) return INFEASIBLE; + if (_node_num <= 1) return INFEASIBLE; // Check the sum of supply values _sum_supply = 0; diff -r 7ef7a5fbb85d -r 072ec8120958 lemon/cost_scaling.h --- a/lemon/cost_scaling.h Fri Nov 13 00:37:55 2009 +0100 +++ b/lemon/cost_scaling.h Fri Nov 13 00:39:28 2009 +0100 @@ -712,7 +712,7 @@ // Initialize the algorithm ProblemType init() { - if (_res_node_num == 0) return INFEASIBLE; + if (_res_node_num <= 1) return INFEASIBLE; // Check the sum of supply values _sum_supply = 0;