1.1 --- a/lemon/capacity_scaling.h Fri Nov 13 00:37:55 2009 +0100
1.2 +++ b/lemon/capacity_scaling.h Fri Nov 13 00:39:28 2009 +0100
1.3 @@ -681,7 +681,7 @@
1.4
1.5 // Initialize the algorithm
1.6 ProblemType init() {
1.7 - if (_node_num == 0) return INFEASIBLE;
1.8 + if (_node_num <= 1) return INFEASIBLE;
1.9
1.10 // Check the sum of supply values
1.11 _sum_supply = 0;
2.1 --- a/lemon/cost_scaling.h Fri Nov 13 00:37:55 2009 +0100
2.2 +++ b/lemon/cost_scaling.h Fri Nov 13 00:39:28 2009 +0100
2.3 @@ -712,7 +712,7 @@
2.4
2.5 // Initialize the algorithm
2.6 ProblemType init() {
2.7 - if (_res_node_num == 0) return INFEASIBLE;
2.8 + if (_res_node_num <= 1) return INFEASIBLE;
2.9
2.10 // Check the sum of supply values
2.11 _sum_supply = 0;