WIP
This commit is contained in:
parent
6431df6bf4
commit
f0f2656db7
2 changed files with 3 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ public abstract class GraphAlgorithm<T> {
|
|||
if (prevNode == null)
|
||||
return null;
|
||||
|
||||
while (!prevNode.node.equals(destination)) {
|
||||
while (prevNode != null) {
|
||||
|
||||
AlgorithmNode<T> prevPrevNode = prevNode.previous;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue