Network.edge_midpoint

Network.edge_midpoint(u, v)[source]

Return the location of the midpoint of an edge.

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

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

Returns

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