[Lemon-commits] Peter Kovacs: Small bug fixes (#180)
Lemon HG
hg at lemon.cs.elte.hu
Mon Dec 14 06:17:47 CET 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/072ec8120958
changeset: 887:072ec8120958
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Fri Nov 13 00:39:28 2009 +0100
description:
Small bug fixes (#180)
diffstat:
lemon/capacity_scaling.h | 2 +-
lemon/cost_scaling.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
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;
More information about the Lemon-commits
mailing list