Added packages, Previous class and ASet class.
This commit is contained in:
1 parent
f252db5e3d
commit
acab098ea1
16 files changed
+99
-5
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package dijkstra;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public interface PreviousInterface {
|
||||
|
||||
/** Returns the father of an element */
|
||||
public VertexInterface getPrevious(VertexInterface vertex) ;
|
||||
|
||||
/** Sets the father of an element to another element */
|
||||
public void setPrevious(VertexInterface father, VertexInterface son) ;
|
||||
|
||||
/**Shortest path from root to a vertex */
|
||||
public ArrayList<VertexInterface> getShortestPathTo(VertexInterface vertex) ;
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user