|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.AbstractObject
|
+--Opus5.AbstractGraph.GraphEdge
Represents an edge in this graph.
Edge| Field Summary | |
protected int |
v0
The number of the vertex in this graph from which this edge emanates. |
protected int |
v1
The number of the vertex in this graph upon which this edge is incident. |
protected java.lang.Object |
weight
The weight associated with this edge. |
| Fields inherited from interface Opus5.Edge |
copyright |
| Constructor Summary | |
AbstractGraph.GraphEdge(int v0,
int v1,
java.lang.Object weight)
Constructs a GraphEdge that connects
the specified vertices and with the specified weight. |
|
| Method Summary | |
protected int |
compareTo(Comparable object)
Compares this edge with the specified comparable object. |
Vertex |
getMate(Vertex v)
Returns the vertex at the end of this edge opposite to the specified vertex. |
Vertex |
getV0()
Returns the vertex in this graph from which this edge emanates. |
Vertex |
getV1()
Returns the vertex in this graph upon which this edge is incident. |
java.lang.Object |
getWeight()
Returns the weight associated with this edge. |
int |
hashCode()
Returns a hashcode for this edge. |
boolean |
isDirected()
Tests whether this edge is directed. |
java.lang.String |
toString()
Returns a string representation of this edge. |
| Methods inherited from class Opus5.AbstractObject |
compare, equals, isEQ, isGE, isGT, isLE, isLT, isNE |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Opus5.Comparable |
compare, isEQ, isGE, isGT, isLE, isLT, isNE |
| Field Detail |
protected int v0
protected int v1
protected java.lang.Object weight
| Constructor Detail |
public AbstractGraph.GraphEdge(int v0,
int v1,
java.lang.Object weight)
GraphEdge that connects
the specified vertices and with the specified weight.v0 - The number of the vertex in this graph
from which this edge emanates.v1 - The number of the vertex in this
upon which this edge is incident.weight - The weight associated with this edge.| Method Detail |
public Vertex getV0()
getV0 in interface Edgepublic Vertex getV1()
getV1 in interface Edgepublic java.lang.Object getWeight()
getWeight in interface Edgepublic Vertex getMate(Vertex v)
getMate(getV0())==getV1()
and
getMate(getV1())==getV0().getMate in interface Edgev - The specified vertex.public boolean isDirected()
isDirected in interface EdgeAbstractGraph.isDirected()protected int compareTo(Comparable object)
compareTo in class AbstractObjectMethodNotImplemented - Always.public int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||