Fixed last dijkstra classes. Algorithm working for squared maze but bugs for non square mazes.

This commit is contained in:
antograb committed 2017-12-06 22:30:58 +01:00
1 parent 5d7c970e1b
commit d7368f7cda
10 files changed
+64 -54

No files matched your search

+4 -1
View File
@@ -2,6 +2,9 @@ package dijkstra;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import maze.Box;
public class Previous implements PreviousInterface {
@@ -11,7 +14,7 @@ public class Previous implements PreviousInterface {
public Previous(Hashtable<VertexInterface, VertexInterface> hashPrevious, ArrayList<VertexInterface> shortestPath) {
super();
this.hashPrevious = hashPrevious;
this.shortestPath = shortestPath;
}