Added signature method for Dijkstra class. Fixed Previous et Pi class.

This commit is contained in:
antograb committed 2017-12-04 13:36:14 +01:00
1 parent 3b674f6049
commit 5d7c970e1b
3 files changed
+35 -1

No files matched your search

+8
View File
@@ -7,6 +7,14 @@ public class Previous implements PreviousInterface {
private Hashtable<VertexInterface, VertexInterface> hashPrevious = new Hashtable<VertexInterface, VertexInterface>() ;
private ArrayList<VertexInterface> shortestPath = new ArrayList<VertexInterface>() ;
public Previous(Hashtable<VertexInterface, VertexInterface> hashPrevious, ArrayList<VertexInterface> shortestPath) {
super();
this.hashPrevious = hashPrevious;
this.shortestPath = shortestPath;
}
public VertexInterface getPrevious(VertexInterface vertex) {