Package classycle.graph
Class AtomicVertex
java.lang.Object
classycle.graph.Vertex
classycle.graph.AtomicVertex
- All Implemented Interfaces:
Comparable<Vertex>
- Direct Known Subclasses:
PackageVertex
A subclass of
Vertex
with the following additional properties:
- A flag indicating whether this vertex belongs to the graph or not.
- The order of visiting.
- The low function.
StrongComponentProcessor
).- Author:
- Franz-Josef Elmer
-
Constructor Summary
ConstructorsConstructorDescriptionAtomicVertex
(Attributes attributes) Creates an instance for the specified attributes. -
Method Summary
Modifier and TypeMethodDescriptionint
getLow()
Returns the current value of the low function.int
getOrder()
Returns the order of visiting.boolean
Returns true if this vertex belongs to a graph.void
reset()
Reset this instance.void
setDefaultValueOfGraphVertexFlag
(boolean flag) Sets the default value of graphVertex flag.void
setLow
(int low) Sets the current value of the low function.void
setOrder
(int order) Sets the order of visiting.Methods inherited from class classycle.graph.Vertex
addIncomingArcTo, addOutgoingArcTo, compareTo, getAttributes, getHeadVertex, getNumberOfIncomingArcs, getNumberOfOutgoingArcs, getTailVertex, isVisited, toString, visit
-
Constructor Details
-
AtomicVertex
Creates an instance for the specified attributes.
-
-
Method Details
-
reset
public void reset()Reset this instance. That is, it becomes a unvisited vertex where order = low = -1. Whether it is a graph vertex or not depends on the default value defined by the methodsetDefaultValueOfGraphVertexFlag(boolean)
. -
isGraphVertex
public boolean isGraphVertex()Returns true if this vertex belongs to a graph. -
setDefaultValueOfGraphVertexFlag
public void setDefaultValueOfGraphVertexFlag(boolean flag) Sets the default value of graphVertex flag.- See Also:
-
getOrder
public int getOrder()Returns the order of visiting. -
setOrder
public void setOrder(int order) Sets the order of visiting. -
getLow
public int getLow()Returns the current value of the low function. -
setLow
public void setLow(int low) Sets the current value of the low function.
-