Fix graph algo
This commit is contained in:
parent
30b20dff8d
commit
f6bed8fbda
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue