|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingleSourceLongestPathAnalyzer
A common interface for all the single source longest path analyzers.
graph.analysis.SingleSourceLongestPathAnalysis
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 mocgraph.analysis.analyzer.GraphAnalyzer |
---|
graph |
Methods inherited from interface mocgraph.analysis.analyzer.Analyzer |
---|
toString, valid |
Method Detail |
---|
double[] distance()
graph.Graph#nodeLabel
Node getStartNode()
java.util.List path(Node endNode)
endNode
- The ending node of the path.double pathLength(Node endNode)
setStartNode(mocgraph.Node)
.
endNode
- The ending node of the path.void setStartNode(Node startNode)
startNode
- The given node.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |