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