ir.webutils
Class Node

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

public class Node
extends java.lang.Object

Node for thr Graph data structure.


Constructor Summary
Node(java.lang.String name)
          Constructs a node with that name.
 
Method Summary
 void addEdge(Node node)
          Adds an out-going edge
 java.util.ArrayList getEdgesIn()
          Gives the list of in-coming edges
 java.util.ArrayList getEdgesOut()
          Gives the list of out-going 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 out-going edge


toString

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

Overrides:
toString in class java.lang.Object

getEdgesOut

public java.util.ArrayList getEdgesOut()
Gives the list of out-going edges


getEdgesIn

public java.util.ArrayList getEdgesIn()
Gives the list of in-coming edges