Class ProcessGraph.SCCResult
java.lang.Object
neqsim.process.processmodel.graph.ProcessGraph.SCCResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
ProcessGraph
Result of strongly connected component analysis.
- Version:
- 1.0
- Author:
- NeqSim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<List<ProcessNode>> private final Map<ProcessNode, Integer> private static final long -
Constructor Summary
ConstructorsConstructorDescriptionSCCResult(List<List<ProcessNode>> components, Map<ProcessNode, Integer> nodeToComponent) -
Method Summary
Modifier and TypeMethodDescriptionintGets components that represent recycle loops (size > 1).
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
components
-
nodeToComponent
-
-
Constructor Details
-
SCCResult
SCCResult(List<List<ProcessNode>> components, Map<ProcessNode, Integer> nodeToComponent)
-
-
Method Details
-
getComponents
- Returns:
- list of strongly connected components
-
getNodeToComponent
- Returns:
- map from node to its component index
-
getComponentCount
public int getComponentCount()- Returns:
- number of components
-
getRecycleLoops
Gets components that represent recycle loops (size > 1).- Returns:
- components with more than one node
-