Package org.codehaus.plexus.util.dag
Class Vertex
java.lang.Object
org.codehaus.plexus.util.dag.Vertex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdgeFrom
(Vertex vertex) void
clone()
Get the labels used by the most direct children.getLabel()
Get the labels used by the most direct ancestors (parents).Get the list the most direct ancestors (parents).boolean
Indicates if there is at least one edee leading to or from given vertexboolean
isLeaf()
Indicates if given vertex has no childboolean
isRoot()
Indicates if given vertex has no parentvoid
removeEdgeFrom
(Vertex vertex) void
removeEdgeTo
(Vertex vertex) toString()
-
Constructor Details
-
Vertex
-
-
Method Details
-
getLabel
-
addEdgeTo
-
removeEdgeTo
-
addEdgeFrom
-
removeEdgeFrom
-
getChildren
-
getChildLabels
-
getParents
-
getParentLabels
-
isLeaf
public boolean isLeaf()Indicates if given vertex has no child- Returns:
true
if this vertex has no child,false
otherwise
-
isRoot
public boolean isRoot()Indicates if given vertex has no parent- Returns:
true
if this vertex has no parent,false
otherwise
-
isConnected
public boolean isConnected()Indicates if there is at least one edee leading to or from given vertex- Returns:
true
if this vertex is connected with other vertex,false
otherwise
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
toString
-