I have a list of tuples with coordinates that are connected (number of tuples connected can be any):
[((0, 0), (0, 1)), ((0, 1), (0, 2)), ((0, 2), (0, 3)), ((