Observation.endpoints#
- property Observation.endpoints: list[Vertex]#
The two vertices of this edge
- Returns:
start and end vertex
- Return type:
list of Vertex subclass
>>> from pgraph import Vertex, Edge >>> v1 = Vertex(coord=[1,2], name="A") >>> v2 = Vertex(coord=[3,4], name="B") >>> e = Edge(v1, v2, cost=5.0, data="A to B") >>> print(e) Edge{[A] -- [B], cost=5} data=A to B >>> print(e.endpoints) [Vertex[A, coord=(1, 2)], Vertex[B, coord=(3, 4)]]
- Seealso: