Class RootVertexImpl1
java.lang.Object
info.oais.implementation.infomodel.poss1RepInfo.possRepInfoNetwork.RootVertexImpl1
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
VertexImpl1
public class RootVertexImpl1 extends Object implements Serializable
The root Vertex of the graph.
- Since:
- 06-Sep-2021 15:59:47
- Version:
- 1.0
- Author:
- David
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
To be used when object is serialized. -
Constructor Summary
Constructors Constructor Description RootVertexImpl1()
-
Method Summary
Modifier and Type Method Description boolean
isAcyclic()
This is a method which can be used to check whether or not the graph is acyclic.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDTo be used when object is serialized.- See Also:
- Constant Field Values
-
-
Constructor Details
-
RootVertexImpl1
public RootVertexImpl1()
-
-
Method Details
-
isAcyclic
public boolean isAcyclic()This is a method which can be used to check whether or not the graph is acyclic. For example if a Vertex or an Edge is added this can be used to check if this would cause the graph to contain a cycle i.e. FAIL to be acyclic, in which case the added component would be removed.- Returns:
- boolean which is true if the Graph is acyclic.
-