|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.util.dag.Vertex
public class Vertex
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()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vertex(String label)
Method Detail |
---|
public String getLabel()
public void addEdgeTo(Vertex vertex)
vertex
- public void removeEdgeTo(Vertex vertex)
vertex
- public void addEdgeFrom(Vertex vertex)
vertex
- public void removeEdgeFrom(Vertex vertex)
public List getChildren()
public List getChildLabels()
public List getParents()
public List getParentLabels()
public boolean isLeaf()
true if this vertex has no child, false
otherwise
public boolean isRoot()
true if this vertex has no parent, false
otherwise
public boolean isConnected()
true if this vertex is connected with other vertex,false
otherwise
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |