Clean up a bit

This commit is contained in:
joachimschmidt557 2019-03-26 14:30:01 +01:00
parent a61f866171
commit 7aceb63400

View file

@ -171,10 +171,6 @@ public abstract class GraphAlgorithm<T> {
if (DEBUG_2) if (DEBUG_2)
System.out.println("Enter run"); System.out.println("Enter run");
if (DEBUG_2) {
}
AlgorithmNode<T> v = getSmallestNode(); AlgorithmNode<T> v = getSmallestNode();
while (v != null) { while (v != null) {
@ -189,7 +185,6 @@ public abstract class GraphAlgorithm<T> {
if (DEBUG_2) { if (DEBUG_2) {
System.out.println("run with n="+n); System.out.println("run with n="+n);
System.out.flush();
} }
if (isPassable(e)) { if (isPassable(e)) {
@ -203,6 +198,7 @@ public abstract class GraphAlgorithm<T> {
n.value = a; n.value = a;
n.previous = v; n.previous = v;
if (DEBUG_2)
System.out.println("--" + n.node.getValue() + " " + n.previous.node.getValue()); System.out.println("--" + n.node.getValue() + " " + n.previous.node.getValue());
} }