|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingleSourceLongestPathAnalyzer
A common interface for all the single source longest path analyzers.
SingleSourceLongestPathAnalysis
Red (ssb) |
Red (shahrooz) |
Method Summary | |
---|---|
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. |
Methods inherited from interface ptolemy.graph.analysis.analyzer.GraphAnalyzer |
---|
graph |
Methods inherited from interface ptolemy.graph.analysis.analyzer.Analyzer |
---|
toString, valid |
Method Detail |
---|
double[] 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |