public class SinkNodeStrategy extends CachedStrategy implements SinkNodeAnalyzer
This analysis requires O(N) time, where N is the number of nodes in the graph.
SinkNodeAnalysis
Red (ssb) |
Red (ssb) |
Constructor and Description |
---|
SinkNodeStrategy(Graph graph)
Construct a sink node analysis for a given graph.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
_compute()
Compute the sink nodes in the graph in the form of
a collection.
|
protected java.lang.Object |
_convertResult()
Return the result of this analysis (collection of sink nodes)
in a form that cannot be modified.
|
java.util.List |
nodes()
Compute the sink nodes in the graph in the form of
a collection.
|
java.lang.String |
toString()
Return a description of sink nodes.
|
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 SinkNodeStrategy(Graph graph)
graph
- The given graph.public java.util.List nodes()
Node
.nodes
in interface SinkNodeAnalyzer
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()