Fix graph algo

This commit is contained in:
joachimschmidt557 2019-03-22 23:14:51 +01:00
parent 30b20dff8d
commit f6bed8fbda

View file

@ -192,7 +192,7 @@ public abstract class GraphAlgorithm<T> {
if (prevNode == null)
return null;
while (prevNode.value != 0) {
while (!prevNode.node.equals(destination)) {
AlgorithmNode<T> prevPrevNode = prevNode.previous;