diff --git a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java index c659b75..b1f515a 100644 --- a/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java +++ b/be-graphes-algos/src/main/java/org/insa/graphs/algorithm/shortestpath/AStarAlgorithm.java @@ -1,14 +1,6 @@ package org.insa.graphs.algorithm.shortestpath; -import java.util.ArrayList; -import java.util.Collections; - -import org.insa.graphs.algorithm.AbstractSolution.Status; -import org.insa.graphs.algorithm.utils.BinaryHeap; -import org.insa.graphs.model.Arc; -import org.insa.graphs.model.Graph; import org.insa.graphs.model.Node; -import org.insa.graphs.model.Path; public class AStarAlgorithm extends DijkstraAlgorithm { @@ -16,94 +8,9 @@ public class AStarAlgorithm extends DijkstraAlgorithm { super(data); } - public LabelStar newLabelStar(Node s, ShortestPathData data){ - return new LabelStar(s, false, Integer.MAX_VALUE, null, s.getPoint().distanceTo(data.getDestination().getPoint())); - } - - @Override - public ShortestPathSolution doRun() { - - // retrieve data from the input problem (getInputData() is inherited from the - // parent class ShortestPathAlgorithm) - final ShortestPathData data = getInputData(); - Graph graph = data.getGraph(); - final int nbNodes = graph.size(); - // ArrayList