ajout algo marathon en choix d'algo shortest path
This commit is contained in:
parent
0979e10f41
commit
f3bb926fda
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import org.insa.graphs.algorithm.marathon.MarathonAlgorithm;
|
||||
import org.insa.graphs.algorithm.shortestpath.AStarAlgorithm;
|
||||
import org.insa.graphs.algorithm.shortestpath.BellmanFordAlgorithm;
|
||||
import org.insa.graphs.algorithm.shortestpath.DijkstraAlgorithm;
|
||||
|
@ -32,6 +33,7 @@ public class AlgorithmFactory {
|
|||
registerAlgorithm(ShortestPathAlgorithm.class, "Bellman-Ford", BellmanFordAlgorithm.class);
|
||||
registerAlgorithm(ShortestPathAlgorithm.class, "Dijkstra", DijkstraAlgorithm.class);
|
||||
registerAlgorithm(ShortestPathAlgorithm.class, "A*", AStarAlgorithm.class);
|
||||
registerAlgorithm(ShortestPathAlgorithm.class, "Marathon", MarathonAlgorithm.class);
|
||||
|
||||
// Register your algorithms here:
|
||||
// registerAlgorithm(CarPoolingAlgorithm.class, "My Awesome Algorithm",
|
||||
|
|
Loading…
Reference in a new issue