Fixed last dijkstra classes. Algorithm working for squared maze but bugs for non square mazes.
This commit is contained in:
1 parent
5d7c970e1b
commit
d7368f7cda
10 files changed
+64
-54
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user