|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javaslam.tjt.graph.Edge
A directed edge in a graph.
| Field Summary | |
Node |
from
The start of this edge. |
Node |
to
The end of this edge. |
| Constructor Summary | |
Edge(Node from,
Node to)
Default constructor. |
|
| Method Summary | |
boolean |
equals(Object o)
Redefines equals so that two edges are equal if
their termini are the equal. |
int |
hashCode()
Redefines hashCode so the hash code of an edge is
the sum of the hash codes of its nodes. |
String |
toString()
Returns a string representation of this edge. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Node from
public Node to
| Constructor Detail |
public Edge(Node from,
Node to)
from node's list of incident edges.
| Method Detail |
public boolean equals(Object o)
equals so that two edges are equal if
their termini are the equal.
equals in class Objectpublic int hashCode()
hashCode so the hash code of an edge is
the sum of the hash codes of its nodes.
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||