public class GeometricGraph_3 extends AdjacencyListGraph<Node<Point_3>> implements GeometricGraph<Point_3>
vertices| Constructor and Description |
|---|
GeometricGraph_3() |
GeometricGraph_3(int n) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(Point_3 p)
Add a new vertex to the graph (with its geometric coordinates)
|
Point_3[] |
boundingBox()
Compute and return the bounding box for the points set.
|
java.util.List<Point_3[]> |
computeEdges()
Return the list of edges of the graph (their corresponding segments)
|
Point_3 |
getPoint(Node<Point_3> v)
Return the geometric coordinates of a vertex
|
Point_3[] |
getSegment(Node<Point_3> u,
Node<Point_3> v)
Return the segment having as extremities two given vertices of the graph
|
java.util.ArrayList<Point_3> |
listOfPoints()
Return the list of vertex points of the graph
|
void |
setPoint(Node<Point_3> v,
Point_3 p)
Set the geometric coordinates of a vertex
|
addEdge, addNode, adjacent, degree, getNeighbors, removeEdge, removeNode, sizeVerticesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEdge, addNode, adjacent, degree, getNeighbors, removeEdge, removeNode, sizeVerticespublic GeometricGraph_3()
public GeometricGraph_3(int n)
public void setPoint(Node<Point_3> v, Point_3 p)
GeometricGraphsetPoint in interface GeometricGraph<Point_3>public Point_3 getPoint(Node<Point_3> v)
GeometricGraphgetPoint in interface GeometricGraph<Point_3>public void addNode(Point_3 p)
addNode in interface GeometricGraph<Point_3>public Point_3[] boundingBox()
boundingBox in interface GeometricGraph<Point_3>public java.util.List<Point_3[]> computeEdges()
public java.util.ArrayList<Point_3> listOfPoints()
listOfPoints in interface GeometricGraph<Point_3>