|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Node
A representation of a node. Created: Fri Mar 31 09:16:17 2000
Constructor Summary | |
Node(java.lang.String name,
int rankLaTeX)
Creates a new Node. |
Method Summary | |
Edge |
anyInEdge()
Returns a random incoming edge. |
Edge |
anyOutEdge()
Returns a random outgoing edge. |
int |
inDegree()
Get the number of incoming edges. |
java.util.Enumeration |
inEdges()
Get the incoming edges. |
int |
outDegree()
Get the number of outgoing edges. |
java.util.Enumeration |
outEdges()
Get the outgoing edges. |
java.lang.String |
toString()
The string representation is just the given name. |
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, int rankLaTeX)
name
- You can give each node a name. This name can be
very handy when debugging. O(1).Method Detail |
public java.util.Enumeration outEdges()
this
node. O(1).public Edge anyOutEdge()
public java.util.Enumeration inEdges()
this
node. O(1).public Edge anyInEdge()
public int inDegree()
this
node.
O(1).public int outDegree()
this
node. O(1)public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |