This commit is contained in:
Bensouda Idriss 2023-05-10 10:26:36 +02:00
commit c2f4b22b09
7 changed files with 2 additions and 1 deletions

View file

@ -56,8 +56,9 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
Tas.remove(pre);
System.out.println("remove");
}
pre = l;
l.setCost(Math.min(l.getCost(), x.getCost()+data.getCost(suivant)));
pre = l;
Tas.insert(l);
l.setParent(suivant);
l.setMarque(true);

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB