public interface SingleSourceLongestPathAnalyzer extends GraphAnalyzer
SingleSourceLongestPathAnalysis| Red (ssb) |
| Red (shahrooz) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
distance()
Return the distance from the start node to all the other nodes in the
graph.
|
Node |
getStartNode()
Return the start node of this analyzer.
|
java.util.List |
path(Node endNode)
Return the longest path from node "startNode" to node "endNode" in the
form of an ordered list.
|
double |
pathLength(Node endNode)
Return the length of the longest path from node "startNode"
to node "endNode".
|
void |
setStartNode(Node startNode)
Set the single source node of this analyzer to the given node.
|
graphdouble[] distance()
Graph.nodeLabel(ptolemy.graph.Node)Node getStartNode()
setStartNode(Node)java.util.List path(Node endNode)
endNode - The ending node of the path.double pathLength(Node endNode)
setStartNode(ptolemy.graph.Node).endNode - The ending node of the path.void setStartNode(Node startNode)
startNode - The given node.getStartNode()