public class SelfLoopStrategy extends CachedStrategy implements SelfLoopAnalyzer
This analysis requires O(E) time, where E is the number of edges in the graph.
SelfLoopAnalysis
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, setCachedResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
graph
public SelfLoopStrategy(Graph graph)
graph
- The given graph.public java.util.List edges()
Edge
.edges
in interface SelfLoopAnalyzer
public java.lang.String toString()
toString
in interface Analyzer
toString
in class CachedStrategy
public boolean valid()
protected java.lang.Object _compute()
Edge
._compute
in class CachedStrategy
protected java.lang.Object _convertResult()