|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.util.graph.impl.DijkstraSPAlgorithm
public class DijkstraSPAlgorithm
Implements Dijkstra Shortest Path Algorithm Coutersy of Ian Philips lecture note in Discrete Mathematics
Field Summary | |
---|---|
private GraphI |
_g
|
Constructor Summary | |
---|---|
DijkstraSPAlgorithm(GraphI g)
|
Method Summary | |
---|---|
void |
dfs(Node n,
GTree t)
|
void |
dfs(Node n,
GTree t,
boolean copyEdge)
|
void |
dfs(Node n,
GTree t,
int nodeCount)
|
void |
dfs(Node n,
GTree t,
java.util.Map rangeMap,
boolean copyEdge)
|
private Node |
getStrictestNode(java.util.Collection nodes,
java.util.Collection exclude,
java.util.Map rangeMap)
|
protected Node |
minFringe(Node n,
GTree tree)
|
GTree |
minimumSPT()
Implement Prim's MST algorithm |
protected Node |
nextFringe(java.util.Map fringes)
|
GTree |
spanningTree()
|
GTree |
spanningTree(java.util.Map rangeMap,
boolean copyEdge)
Construct a spanning tree based on the range information of the nodes of its graphs |
GTree |
spanningTree(Node start)
|
GTree |
spanningTree(Node start,
boolean copyEdge)
|
java.util.List |
spanningTreeList(int numTrees)
Find a number of spanning trees in the graph |
java.util.List |
spanningTreeList(int numTrees,
boolean copyEdge)
|
GTree |
tree(int nodeCount)
Return a tree containing a fixed number of nodes |
protected java.lang.Double |
weight(Node n1,
Node n2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private GraphI _g
Constructor Detail |
---|
public DijkstraSPAlgorithm(GraphI g)
Method Detail |
---|
public GTree spanningTree()
public GTree tree(int nodeCount)
nodeCount
-
public void dfs(Node n, GTree t, int nodeCount)
public java.util.List spanningTreeList(int numTrees)
numTrees
-
public java.util.List spanningTreeList(int numTrees, boolean copyEdge)
public GTree spanningTree(java.util.Map rangeMap, boolean copyEdge)
rangeMap
- copyEdge
-
private Node getStrictestNode(java.util.Collection nodes, java.util.Collection exclude, java.util.Map rangeMap)
public GTree spanningTree(Node start)
public GTree spanningTree(Node start, boolean copyEdge)
public void dfs(Node n, GTree t)
public void dfs(Node n, GTree t, boolean copyEdge)
public void dfs(Node n, GTree t, java.util.Map rangeMap, boolean copyEdge)
public GTree minimumSPT()
protected Node nextFringe(java.util.Map fringes)
protected java.lang.Double weight(Node n1, Node n2)
protected Node minFringe(Node n, GTree tree)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |