diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/marathon/MarathonAlgorithm.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/marathon/MarathonAlgorithm.java index beeda8b..cf445b2 100644 --- a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/marathon/MarathonAlgorithm.java +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/marathon/MarathonAlgorithm.java @@ -62,9 +62,11 @@ public class MarathonAlgorithm extends ShortestPathAlgorithm { if (newPath != null) { // Ajout du path trouvé à l'indice où on l'a enlevé path.replaceArc(arcToRemove, newPath.getArcs()); + // display path + notifyMarathonPathUpdated(path, newPath); } } - + return solution; } diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/ShortestPathAlgorithm.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/ShortestPathAlgorithm.java index c9d60d4..a57e374 100644 --- a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/ShortestPathAlgorithm.java +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/ShortestPathAlgorithm.java @@ -2,6 +2,7 @@ package org.insa.graphs.algorithm.shortestpath; import org.insa.graphs.algorithm.AbstractAlgorithm; import org.insa.graphs.model.Node; +import org.insa.graphs.model.Path; public abstract class ShortestPathAlgorithm extends AbstractAlgorithm { @@ -69,6 +70,17 @@ public abstract class ShortestPathAlgorithm extends AbstractAlgorithm