|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Edge
A representation of an edge. Created: Fri Mar 31 09:31:36 2000
Constructor Summary | |
Edge(Node from,
Node to)
Creates an edge from the from -node to the
to -node. |
Method Summary | |
void |
remove()
Removes this edge. |
java.lang.String |
toString()
Produce a stringrepresentation of a edge. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Edge(Node from, Node to)
from
-node to the
to
-node. Even though the two nodes are adjacent
an edge will be made between them. O(1).from
- The origin of the newly created edge.to
- The destination of the newly created edge.Method Detail |
public void remove()
this
edge. The data structures in the
nodes are updated accordingly. 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 |