Vertex

class foronoi.graph.Vertex(x, y, connected_edges=None)

A vertex is a fixed cross point between borders. Extends the Coordinate class.

Examples

Vertex operations

>>> connected_edges: List[HalfEdge] = vertex.connected_edges  # All connected edges
>>> vertex_x: float = vertex.x                                # x-coordinate
>>> vertex_xy: [float, float] = vertex.xy                     # (x, y)-coordinates
Parameters
  • x (Decimal) – x-coordinate

  • y (Decimal) – y-coordinate

  • connected_edges (list(HalfEdge)) – List of edges connected to this vertex.

connected_edges

List of edges connected to this vertex.

Type

list(HalfEdge)