Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Defined in
Comparable . |
int |
getColor()
Gets the color of this Edge.
|
Vertex |
getEndPoint()
Returns the end point of this Edge.
|
Vertex |
getEndPoint(Vertex vertex)
Returns the
Vertex on the other end
of the specified Edge. |
java.lang.String |
getLabel()
Gets the label of this Edge.
|
Vertex |
getStartPoint()
Returns the starting point of this Edge.
|
float |
getWeight()
Gets the weight of this Edge.
|
boolean |
goesOut(Vertex vertex)
Determines whether this Edge goes out from the specified
Vertex.
|
int |
setColor(int color)
Sets the color of this Edge.
|
java.lang.String |
setLabel(java.lang.String label)
Sets the label of this Edge.
|
float |
setWeight(float weight)
Sets the weight of this Edge.
|
java.lang.String |
toString()
Produces a String representation of this Edge.
|
public Vertex getEndPoint(Vertex vertex)
Vertex
on the other end
of the specified Edge.
leads to.vertex
- the Vertex to start tracing frompublic Vertex getEndPoint()
public Vertex getStartPoint()
public boolean goesOut(Vertex vertex)
DiGraph
s.vertex
- the Vertex that is to be tested for being the
origin Vertex of this Edge.public int getColor()
public int setColor(int color)
color
- the new color for this Edgepublic float getWeight()
public float setWeight(float weight)
weight
- the new weight for this Edgepublic java.lang.String getLabel()
public java.lang.String setLabel(java.lang.String label)
label
- the new label for this Edgepublic int compareTo(java.lang.Object o)
Comparable
.compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object