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, setCachedResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgraphpublic SinkNodeStrategy(Graph graph)
graph - The given graph.public java.util.List nodes()
Node.nodes in interface SinkNodeAnalyzerpublic java.lang.String toString()
toString in interface AnalyzertoString in class CachedStrategypublic boolean valid()
protected java.lang.Object _compute()
Node._compute in class CachedStrategyprotected java.lang.Object _convertResult()