gov.nist.antd.merlin.algorithm.route.shortestpath.k
Class KspDisjoint.KGraph
java.lang.Object
|
+--gov.nist.antd.merlin.algorithm.route.util.Graph
|
+--gov.nist.antd.merlin.algorithm.route.shortestpath.k.KspDisjoint.KGraph
- Enclosing class:
- KspDisjoint
- public class KspDisjoint.KGraph
- extends Graph
KGraph adds a method deleteEdge and overides buildpath() to
be able to delete edges in the graph as paths are constructed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KspDisjoint.KGraph
public KspDisjoint.KGraph(Glass net)
- constructor calls superclass constructor
- Parameters:
net -
deleteEdge
public void deleteEdge(ExtRouter source,
ExtRouter dest)
- removes an edge from the graph
- Parameters:
dest - is the end of edge
buildPath
public void buildPath(Vertex source,
Vertex dest,
java.util.Vector v)
- Recursive routine to build path to dest
after running shortest path algorithm. The path
is known to exist.
- Overrides:
buildPath in class Graph
- Parameters:
source - The source vertex.dest - The destination vertexv - The vector where the path is stored.