From 7aceb63400346703c56a5142dbcf77515131ab6e Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Tue, 26 Mar 2019 14:30:01 +0100 Subject: [PATCH] Clean up a bit --- Projektgruppe_175/src/base/GraphAlgorithm.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Projektgruppe_175/src/base/GraphAlgorithm.java b/Projektgruppe_175/src/base/GraphAlgorithm.java index 57e5352..d30f3c3 100644 --- a/Projektgruppe_175/src/base/GraphAlgorithm.java +++ b/Projektgruppe_175/src/base/GraphAlgorithm.java @@ -170,10 +170,6 @@ public abstract class GraphAlgorithm { if (DEBUG_2) System.out.println("Enter run"); - - if (DEBUG_2) { - - } AlgorithmNode v = getSmallestNode(); @@ -189,7 +185,6 @@ public abstract class GraphAlgorithm { if (DEBUG_2) { System.out.println("run with n="+n); - System.out.flush(); } if (isPassable(e)) { @@ -202,8 +197,9 @@ public abstract class GraphAlgorithm { n.value = a; n.previous = v; - - System.out.println("--" + n.node.getValue() + " " + n.previous.node.getValue()); + + if (DEBUG_2) + System.out.println("--" + n.node.getValue() + " " + n.previous.node.getValue()); }