Network.to_lines

Network.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.

See also

from_lines()
to_nodes_and_edges(), to_obj(), to_points()