TopologyDiagram.edge_direction

TopologyDiagram.edge_direction(u, v)[source]

Return the direction vector of an edge.

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

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

Returns:

list[float] – The direction vector of the edge.