org.codehaus.plexus.util.dag
Class Vertex
java.lang.Object
org.codehaus.plexus.util.dag.Vertex
- Cloneable, Serializable
public class Vertex
extends java.lang.Object
implements Cloneable, Serializable
$Id: Vertex.java 1106 2004-10-07 19:29:57Z jdcasey $
children
(package private) List children
label
private String label
parents
(package private) List parents
Vertex
public Vertex(String label)
addEdgeFrom
public void addEdgeFrom(Vertex vertex)
addEdgeTo
public void addEdgeTo(Vertex vertex)
clone
public Object clone()
throws CloneNotSupportedException
getChildLabels
public List getChildLabels()
Get the labels used by the most direct children.
- the labels used by the most direct children.
getChildren
public List getChildren()
getLabel
public String getLabel()
getParentLabels
public List getParentLabels()
Get the labels used by the most direct ancestors (parents).
getParents
public List getParents()
Get the list the most direct ancestors (parents).
isConnected
public boolean isConnected()
Indicates if there is at least one edee leading to or from given vertex
true if this vertex is connected with other vertex,
false
otherwise
isLeaf
public boolean isLeaf()
Indicates if given vertex has no child
true if this vertex has no child,
false
otherwise
isRoot
public boolean isRoot()
Indicates if given vertex has no parent
true if this vertex has no parent,
false
otherwise
removeEdgeFrom
public void removeEdgeFrom(Vertex vertex)
removeEdgeTo
public void removeEdgeTo(Vertex vertex)
toString
public String toString()