|
|
Edge Interface
|
| void
|
clearMark ()
Unmarks the edge.
|
| int
|
compareTo (Object that)
Returns -1, 0, or 1 depending on whether
this edge's label is less, equal, or greater
than that edge's label, respectively. Throws
an exception if that is not an edge or either edge fails to have a comparable label.
|
| boolean
|
equals (Object obj)
Returns true if the specified object is
an edge whose from vertex and to vertex equal those of this edge, else returns false. (Note: This method is useful when edges are stored
in collections such as lists.)
|
| Vertex
|
getFromVertex ()
Returns the edge's source vertex.
|
| Object
|
getLabel ()
Returns the edge's label.
|
| Vertex
|
getToVertex ()
Returns the edge's destination vertex.
|
| double
|
getWeight ()
Returns the edge's weight. Throws an exception if the edge's label is not a
weighable object.
|
| int
|
hashCode ()
Returns the edge's hash code.
|
| boolean
|
isMarked ()
Returns true if the edge is marked else
returns false.
|
| void
|
setLabel (Object label)
Changes the edges label to the specified
label. Throws an exception if the specified
label is null.
|
| void
|
setMark ()
Marks the edge.
|
| void
|
setWeight (double weight)
Sets the edge's weight to the specified
value.
|
| String
|
toString ()
Returns a string representation of this
edge.
|