All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----tw.edu.ncnu.im.cnclab.Algor.Algorithm
|
+----tw.edu.ncnu.im.cnclab.Algor.ShortestPath
ShortestPath class define the Shortest path algorithm.
protected int verts
public static final Color OTHER
public static final Color TREE_EDGE
public static final Color FIRST_TOUCHED_COLOR
public static final Color FINISH_VISITED_COLOR
protected boolean drawNegativeLoop
public ShortestPath()
protected void setArg(Object args[]) throws IllegalArgumentException
Valid args: null , Object[]{Integer(int startNode),Boolean(boolean drawTheNegativeLoop )}
public GenericDialog getPreferredDialog(Graph graph,
Frame fr)
protected double relax(Graph graph,
Vertex u,
Vertex v)
protected abstract Object algorImpl() throws AlgorithmException
All Packages Class Hierarchy This Package Previous Next Index