public class NegativeLengthCycleAnalysis extends Analysis
| Red (ssb) |
| Red (shahrooz) |
| Constructor and Description |
|---|
NegativeLengthCycleAnalysis(Graph graph,
ToDoubleMapping edgeLengths)
Construct an instance of this class using a default analyzer.
|
NegativeLengthCycleAnalysis(NegativeLengthCycleAnalyzer analyzer)
Construct an instance of this class using a given analyzer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNegativeLengthCycle()
Return true if a negative cycle exists in the graph under analysis.
|
java.lang.String |
toString()
Return a description of the analysis and the associated analyzer.
|
boolean |
validAnalyzerInterface(Analyzer analyzer)
Check if a given analyzer is compatible with this analysis.
|
analyzer, changeAnalyzer, graph, validpublic NegativeLengthCycleAnalysis(Graph graph, ToDoubleMapping edgeLengths)
graph - The given graph.edgeLengths - The lengths associated with the edges of the graph.public NegativeLengthCycleAnalysis(NegativeLengthCycleAnalyzer analyzer)
analyzer - The given analyzer.public boolean hasNegativeLengthCycle()
public java.lang.String toString()
public boolean validAnalyzerInterface(Analyzer analyzer)
validAnalyzerInterface in class Analysisanalyzer - The given analyzer.