ir.webutils
Class Node

java.lang.Object
  extended by ir.webutils.Node

public class Node
extends java.lang.Object

Node in the the Graph data structure.

See Also:
Graph

Constructor Summary
Node(java.lang.String name)
          Constructs a node with that name.
 
Method Summary
 void addEdge(Node node)
          Adds an outgoing edge
 java.util.List<Node> getEdgesIn()
          Gives the list of incoming edges
 java.util.List<Node> getEdgesOut()
          Gives the list of outgoing edges
 java.lang.String toString()
          Returns the name of the node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(java.lang.String name)
Constructs a node with that name.

Method Detail

addEdge

public void addEdge(Node node)
Adds an outgoing edge


toString

public java.lang.String toString()
Returns the name of the node

Overrides:
toString in class java.lang.Object

getEdgesOut

public java.util.List<Node> getEdgesOut()
Gives the list of outgoing edges


getEdgesIn

public java.util.List<Node> getEdgesIn()
Gives the list of incoming edges