TopologyDiagram.to_lines

TopologyDiagram.to_lines()[source]

Return the lines of the network as pairs of start and end point coordinates.

Returns:

list[tuple[list[float], list[float]]] – A list of lines each defined by a pair of point coordinates.