|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ir.webutils.Node
public class Node
Node in the the Graph data structure.
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 |
---|
public Node(java.lang.String name)
Method Detail |
---|
public void addEdge(Node node)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<Node> getEdgesOut()
public java.util.List<Node> getEdgesIn()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |