BaseNetwork.edge_coordinates

BaseNetwork.edge_coordinates(u, v, axes='xyz')[source]

Return the coordinates of the start and end point of an edge.

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

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

  • axes (str (xyz)) – The axes along which the coordinates should be included.

Returns

tuple – The coordinates of the start point and the coordinates of the end point.