bug de chemin non existant réparé
This commit is contained in:
parent
fc6268576e
commit
9c9fb02a9b
2 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
tas.insert(listLabel[nod.getId()]);
|
||||
notifyOriginProcessed(nod);
|
||||
}
|
||||
else if (nod.equals(dataInput.getDestination())){
|
||||
listLabel[nod.getId()] = newLabel(nod);
|
||||
}
|
||||
}
|
||||
Label xl = tas.findMin();
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue