public interface AllPairShortestPathAnalyzer extends GraphAnalyzer
AllPairShortestPathAnalysis
Red (ssb) |
Red (shahrooz) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
shortestPath(Node startNode,
Node endNode)
Return the nodes on the shortest path from the node
"startNode" to the node "endNode" in the form of an ordered list.
|
double |
shortestPathLength(Node startNode,
Node endNode)
Return the length of the shortest path from the node
startNode to the node endNode.
|
double[][] |
shortestPathMatrix()
A matrix representing the result of the all pair shortest path
algorithm.
|
graph
java.util.List shortestPath(Node startNode, Node endNode)
startNode
- The starting node of the path.endNode
- The ending node of the path.double shortestPathLength(Node startNode, Node endNode)
startNode
- The starting node of the path.endNode
- The end node of the path.double[][] shortestPathMatrix()
Graph.nodeLabel(ptolemy.graph.Node)