public class EdgeImpl extends Object implements Edge
To do:
Expose the LabeledEdge implementation so that
setFollowVertexLabel() can be called to turn it on or off.
| Modifier and Type | Field and Description |
|---|---|
protected String |
str
The string returned when toString() is called.
|
protected Vertex |
vertexA
The A vertex of the edge.
|
protected Vertex |
vertexB
The B vertex of the edge.
|
| Constructor and Description |
|---|
EdgeImpl(Vertex a,
Vertex b)
Creates an UndirectedEdge object.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone()
Creates a clone of this Edge.
|
String |
getLabel() |
Vertex |
getOppositeVertex(Vertex v)
Returns the Vertex opposite to the specified Vertex in the edge.
|
Vertex |
getVertexA()
Returns the endpoint A of the edge.
|
Vertex |
getVertexB()
Returns the endpoint B of the edge.
|
boolean |
hasLabel() |
boolean |
isFollowVertexLabel() |
void |
setFollowVertexLabel(boolean isFollow)
Specifies if the edge should follow the labels of its vertices.
|
void |
setLabel(String label)
Set the label on this component.
|
String |
toString()
Returns a String representation of the Edge.
|
protected Vertex vertexA
protected Vertex vertexB
protected String str
public Vertex getVertexA()
getVertexA in interface Edgepublic Vertex getVertexB()
getVertexB in interface Edgepublic Vertex getOppositeVertex(Vertex v)
getOppositeVertex in interface Edgepublic boolean hasLabel()
hasLabel in interface LabeledGraphComponentpublic String getLabel()
getLabel in interface LabeledGraphComponentpublic void setLabel(String label)
LabeledGraphComponentsetLabel in interface LabeledGraphComponentlabel - the new label to assign to the componentpublic boolean isFollowVertexLabel()
isFollowVertexLabel in interface LabeledEdgepublic void setFollowVertexLabel(boolean isFollow)
LabeledEdgesetFollowVertexLabel in interface LabeledEdgepublic String toString()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.