public class FloydWarshallCycleExistenceStrategy extends CachedStrategy implements CycleExistenceAnalyzer
CycleExistenceAnalysis| Red (ssb) |
| Red (shahrooz) |
| Constructor and Description |
|---|
FloydWarshallCycleExistenceStrategy(Graph graph)
Construct an instance of this analyzer for a given graph.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
_compute()
The computation associated with the Floyd-Warshall algorithm.
|
boolean |
hasCycle()
Check acyclic property of the graph.
|
java.lang.String |
toString()
Return a description of the analyzer.
|
boolean |
valid()
Check for compatibility between the analysis and the given
graph.
|
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgraphpublic FloydWarshallCycleExistenceStrategy(Graph graph)
graph - The given graph.public boolean hasCycle()
hasCycle in interface CycleExistenceAnalyzerpublic java.lang.String toString()
toString in interface AnalyzertoString in class CachedStrategypublic boolean valid()
DirectedGraph
in order to use this algorithm.protected java.lang.Object _compute()
_compute in class CachedStrategyBoolean Object if the graph is
cyclic.