Network.edge_point

Network.edge_point(u, v, t=0.5)[source]

Return the location of a point along an edge.

Parameters
  • u (hashable) – The key of the start node.

  • v (hashable) – The key of the end node.

  • t (float, optional) – The location of the point on the edge. If the value of t is outside the range 0-1, the point will lie in the direction of the edge, but not on the edge vector.

Returns

list[float] – The XYZ coordinates of the point.