VertexType
- the type of the vertices.public class MetaEdge<VertexType>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected VertexType |
endPoint |
protected VertexType |
startPoint |
Constructor and Description |
---|
MetaEdge(VertexType startPoint,
VertexType endPoint)
Creates an instance with the two given vertices
|
Modifier and Type | Method and Description |
---|---|
void |
addToGraph(GraphLibrary<VertexType,?> graph)
Adds this edge as a real edge in the given graph
|
MetaEdge<VertexType> |
clone() |
VertexType |
getEndPoint() |
VertexType |
getStartPoint() |
boolean |
isEdge(GraphLibrary<VertexType,?> graph)
Tells whether or not this edge is actually an edge in the given graph
|
protected VertexType startPoint
protected VertexType endPoint
public MetaEdge(VertexType startPoint, VertexType endPoint)
public VertexType getStartPoint()
public VertexType getEndPoint()
public boolean isEdge(GraphLibrary<VertexType,?> graph)
public void addToGraph(GraphLibrary<VertexType,?> graph)
public MetaEdge<VertexType> clone()
clone
in class java.lang.Object