public interface GeometricGraph<X extends Point_> extends Graph<Node<X>>
Modifier and Type | Method and Description |
---|---|
void |
addNode(X p)
Add a new vertex to the graph (with its geometric coordinates)
|
X[] |
boundingBox()
Compute the bounding box (enclosing the vertices of the graph)
|
X |
getPoint(Node<X> v)
Return the geometric coordinates of a vertex
|
java.util.ArrayList<X> |
listOfPoints()
Return the list of points associated to the vertices of the graph
|
void |
setPoint(Node<X> v,
X p)
Set the geometric coordinates of a vertex
|
addEdge, addNode, adjacent, degree, getNeighbors, removeEdge, removeNode, sizeVertices
void addNode(X p)
java.util.ArrayList<X> listOfPoints()
X[] boundingBox()