|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javatools.datatypes.DirectedGraph.Node<E>
public static class DirectedGraph.Node<E extends java.lang.Comparable<E>>
Represents a node of in a graph
Method Summary | |
---|---|
void |
addChild(DirectedGraph.Node<E> child)
Adds a child |
void |
addLink(DirectedGraph.Node<E> node)
Adds a node in an undirected graph |
void |
addParent(DirectedGraph.Node<E> parent)
Adds a parents |
java.util.SortedSet<DirectedGraph.Node<E>> |
ancestors()
Computes the ancestors of this node |
java.util.Set<DirectedGraph.Node<E>> |
children()
Returns the children |
int |
compareTo(DirectedGraph.Node<E> arg0)
|
java.util.Set<DirectedGraph.Node<E>> |
descendants()
Computes the ancestors of this node |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
E |
label()
Returns the label |
java.util.Set<DirectedGraph.Node<E>> |
links()
returns the links in an undirected graph |
java.util.Set<DirectedGraph.Node<E>> |
parents()
Returns the parents |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void addChild(DirectedGraph.Node<E> child)
public void addParent(DirectedGraph.Node<E> parent)
public void addLink(DirectedGraph.Node<E> node)
public java.util.Set<DirectedGraph.Node<E>> links()
public java.util.Set<DirectedGraph.Node<E>> children()
public java.util.Set<DirectedGraph.Node<E>> parents()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.SortedSet<DirectedGraph.Node<E>> ancestors()
public java.util.Set<DirectedGraph.Node<E>> descendants()
public int compareTo(DirectedGraph.Node<E> arg0)
compareTo
in interface java.lang.Comparable<DirectedGraph.Node<E extends java.lang.Comparable<E>>>
public E label()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |