public class SourceNodeStrategy extends CachedStrategy implements SourceNodeAnalyzer
This analysis requires O(N) time, where N is the number of nodes in the graph.
SourceNodeAnalysis
Constructor and Description |
---|
SourceNodeStrategy(Graph graph)
Construct an instance of this strategy for a given graph.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
_compute()
Compute the source nodes in the graph in the form of
a collection.
|
protected java.lang.Object |
_convertResult()
Return the result of this analysis (collection of source nodes)
in a form that cannot be modified.
|
java.util.List |
nodes()
Compute the source nodes in the graph in the form of
a collection.
|
java.lang.String |
toString()
Return a description of the analyzer.
|
boolean |
valid()
Check compatibility of the class of graph.
|
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
graph
public SourceNodeStrategy(Graph graph)
graph
- The given graph.public java.util.List nodes()
Node
.nodes
in interface SourceNodeAnalyzer
public java.lang.String toString()
toString
in interface Analyzer
toString
in class CachedStrategy
public boolean valid()
protected java.lang.Object _compute()
Node
._compute
in class CachedStrategy
protected java.lang.Object _convertResult()