|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.rwth.graph.Graph.Node
|
+--de.rwth.graph.RootedGraph.Node
This class represents a node in a RootedGraph.
| Inner classes inherited from class de.rwth.graph.Graph.Node |
Graph.Node.Edge |
| Fields inherited from class de.rwth.graph.Graph.Node |
attributes, inEdges, label, number, outEdges |
| Constructor Summary | |
RootedGraph.Node()
Creates a new Node without a label. |
|
RootedGraph.Node(java.lang.Object label)
Creates a new Node with a label. |
|
| Method Summary | |
boolean |
isLeaf()
Checks if this node is a leaf node. |
boolean |
isRoot()
Checks if this node is a root node. |
void |
remove()
Removes this Edge from the graph. |
| Methods inherited from class de.rwth.graph.Graph.Node |
bendInEdges, bendOutEdges, getAttributes, getGraph, getInArray, getInDegree, getInEdges, getLabel, getOutArray, getOutDegree, getOutEdges, merge, setAttributes, setLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RootedGraph.Node()
Node without a label.public RootedGraph.Node(java.lang.Object label)
Node with a label.| Method Detail |
public void remove()
Edge from the graph.remove in class Graph.Nodepublic boolean isRoot()
true if node is a root node;
false otherwise.public boolean isLeaf()
true if node is a leaf node;
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||