Package org.codehaus.plexus.util.dag
Class Vertex
java.lang.Object
org.codehaus.plexus.util.dag.Vertex
- All Implemented Interfaces:
- Serializable,- Cloneable
- Author:
- Michal Maczka
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddEdgeFrom(Vertex vertex) voidclone()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).booleanIndicates if there is at least one edee leading to or from given vertexbooleanisLeaf()Indicates if given vertex has no childbooleanisRoot()Indicates if given vertex has no parentvoidremoveEdgeFrom(Vertex vertex) voidremoveEdgeTo(Vertex vertex) toString()
- 
Constructor Details- 
Vertex
 
- 
- 
Method Details- 
getLabel
- 
addEdgeTo
- 
removeEdgeTo
- 
addEdgeFrom
- 
removeEdgeFrom
- 
getChildren
- 
getChildLabelsGet the labels used by the most direct children.- Returns:
- the labels used by the most direct children.
 
- 
getParentsGet the list the most direct ancestors (parents).- Returns:
- list of parents
 
- 
getParentLabelsGet the labels used by the most direct ancestors (parents).- Returns:
- the labels used parents
 
- 
isLeafpublic boolean isLeaf()Indicates if given vertex has no child- Returns:
- trueif this vertex has no child,- falseotherwise
 
- 
isRootpublic boolean isRoot()Indicates if given vertex has no parent- Returns:
- trueif this vertex has no parent,- falseotherwise
 
- 
isConnectedpublic boolean isConnected()Indicates if there is at least one edee leading to or from given vertex- Returns:
- trueif this vertex is connected with other vertex,- falseotherwise
 
- 
clone- Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
- 
toString
 
-