public class VVertex extends VPoint
Constructor and Description |
---|
VVertex() |
VVertex(int x,
int y) |
VVertex(VPoint point) |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(VHalfEdge edge) |
void |
clearEdges() |
double |
distanceTo(VVertex distance) |
java.lang.String |
getConnectedEdgeString() |
java.lang.String |
getConnectedVertexString() |
VHalfEdge |
getEdge(int vertexnumber) |
VHalfEdge |
getEdge(VVertex connectedtovertex) |
java.util.ArrayList<VHalfEdge> |
getEdges() |
boolean |
hasEdges() |
boolean |
isConnectedTo(VVertex connectedtovertex) |
boolean |
removeEdge(VHalfEdge edge) |
java.lang.String |
toString() |
distanceTo, equals, hashCode
public VVertex()
public VVertex(int x, int y)
public VVertex(VPoint point)
public boolean hasEdges()
public void clearEdges()
public void addEdge(VHalfEdge edge)
public java.util.ArrayList<VHalfEdge> getEdges()
public boolean removeEdge(VHalfEdge edge)
public double distanceTo(VVertex distance)
public VHalfEdge getEdge(int vertexnumber)
public boolean isConnectedTo(VVertex connectedtovertex)
public java.lang.String getConnectedEdgeString()
public java.lang.String getConnectedVertexString()