Class ProcessGraph.CycleAnalysisResult

java.lang.Object
neqsim.process.processmodel.graph.ProcessGraph.CycleAnalysisResult
All Implemented Interfaces:
Serializable
Enclosing class:
ProcessGraph

public static class ProcessGraph.CycleAnalysisResult extends Object implements Serializable
Result of cycle detection analysis.
Version:
1.0
Author:
NeqSim
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • hasCycles

      public boolean hasCycles()
      Returns:
      true if the graph contains cycles
    • getCycles

      public List<List<ProcessNode>> getCycles()
      Returns:
      list of cycles found (each cycle is a list of nodes)
    • getBackEdges

      public List<ProcessEdge> getBackEdges()
      Returns:
      edges that create cycles (back edges in DFS)
    • getCycleCount

      public int getCycleCount()
      Returns:
      number of cycles found