# HG changeset patch # User Peter Kovacs # Date 2009-11-13 00:39:28 # Node ID 072ec8120958cfeec887f076b1c1add2a939657e # Parent 7ef7a5fbb85d640f25d112921cb258e54d6f320d Small bug fixes (#180) diff --git a/lemon/capacity_scaling.h b/lemon/capacity_scaling.h --- a/lemon/capacity_scaling.h +++ b/lemon/capacity_scaling.h @@ -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 --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h --- a/lemon/cost_scaling.h +++ b/lemon/cost_scaling.h @@ -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;