Added signature method for Dijkstra class. Fixed Previous et Pi class.
This commit is contained in:
1 parent
3b674f6049
commit
5d7c970e1b
3 files changed
+35
-1
No files matched your search
@@ -6,6 +6,12 @@ public class Pi implements PiInterface {
|
||||
|
||||
private Hashtable<VertexInterface, Integer> hashPi = new Hashtable<VertexInterface, Integer>() ;
|
||||
|
||||
public Pi(Hashtable<VertexInterface, Integer> hashPi) {
|
||||
|
||||
this.hashPi = hashPi ;
|
||||
|
||||
}
|
||||
|
||||
public int getPi(VertexInterface vertex) {
|
||||
|
||||
return hashPi.get(vertex) ;
|
||||
|
||||
Reference in new issue
Block a user