de.rwth.graph
Class RootedGraph.Node

java.lang.Object
  |
  +--de.rwth.graph.Graph.Node
        |
        +--de.rwth.graph.RootedGraph.Node
Enclosing class:
RootedGraph

public class RootedGraph.Node
extends Graph.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

RootedGraph.Node

public RootedGraph.Node()
Creates a new Node without a label.

RootedGraph.Node

public RootedGraph.Node(java.lang.Object label)
Creates a new Node with a label.
Method Detail

remove

public void remove()
Removes this Edge from the graph.
Overrides:
remove in class Graph.Node

isRoot

public boolean isRoot()
Checks if this node is a root node.
Returns:
true if node is a root node; false otherwise.

isLeaf

public boolean isLeaf()
Checks if this node is a leaf node.
Returns:
true if node is a leaf node; false otherwise.