Class ProcessGraph.CycleAnalysisResult
java.lang.Object
neqsim.process.processmodel.graph.ProcessGraph.CycleAnalysisResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
ProcessGraph
Result of cycle detection analysis.
- Version:
- 1.0
- Author:
- NeqSim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ProcessEdge> private final List<List<ProcessNode>> private final booleanprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionCycleAnalysisResult(boolean hasCycles, List<List<ProcessNode>> cycles, List<ProcessEdge> backEdges) -
Method Summary
Modifier and TypeMethodDescriptionintboolean
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
hasCycles
private final boolean hasCycles -
cycles
-
backEdges
-
-
Constructor Details
-
CycleAnalysisResult
CycleAnalysisResult(boolean hasCycles, List<List<ProcessNode>> cycles, List<ProcessEdge> backEdges)
-
-
Method Details
-
hasCycles
public boolean hasCycles()- Returns:
- true if the graph contains cycles
-
getCycles
- Returns:
- list of cycles found (each cycle is a list of nodes)
-
getBackEdges
- Returns:
- edges that create cycles (back edges in DFS)
-
getCycleCount
public int getCycleCount()- Returns:
- number of cycles found
-