Find the shortest paths that go through all vertices.
The lines are broken up into the connected sublines. Note this function is only
designed to work with connected sublines that are either simple cycles or
chains with no branches.
Parameters:
vertices (ndarray) – (n, 2) float array of the line vertices.