Dijkstra et A* corrigé2.1

This commit is contained in:
Gasson-Betuing Danyl 2025-05-20 13:47:52 +02:00
parent 4e07fd986e
commit efeba4104c

View file

@ -121,8 +121,7 @@ public class AStarAlgorithm extends DijkstraAlgorithm {
// to observe the path search // to observe the path search
if (Double.isInfinite(OldCost) if (Double.isInfinite(OldCost) && Double.isFinite(NewCost)) {
&& Double.isFinite(NewCost)) {
notifyNodeReached(arc.getDestination()); notifyNodeReached(arc.getDestination());
} }