public class SelfLoopStrategy extends CachedStrategy implements SelfLoopAnalyzer
This analysis requires O(E) time, where E is the number of edges in the graph.
SelfLoopAnalysis| Red (ssb) |
| Red (ssb) |
| Constructor and Description |
|---|
SelfLoopStrategy(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 self-loop edges in the graph in the form of
a collection.
|
protected java.lang.Object |
_convertResult()
Return the result of this analysis (collection of self-loop edges)
in a form that cannot be modified.
|
java.util.List |
edges()
Compute the self-loop edges in the graph in the form of
a collection.
|
java.lang.String |
toString()
Return a description of the analyzer.
|
boolean |
valid()
Check for validity of this strategy.
|
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgraphpublic SelfLoopStrategy(Graph graph)
graph - The given graph.public java.util.List edges()
Edge.edges in interface SelfLoopAnalyzerpublic java.lang.String toString()
toString in interface AnalyzertoString in class CachedStrategypublic boolean valid()
protected java.lang.Object _compute()
Edge._compute in class CachedStrategyprotected java.lang.Object _convertResult()