ForceDiagram.edge_midpoint

ForceDiagram.edge_midpoint(u, v)[source]

Return the location of the midpoint of an edge.

Parameters:
  • u (int) – The key of the start vertex.

  • v (int) – The key of the end vertex.

Returns:

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