I have a list of tuples in Python:
[(0, 1), (0, 2), (0, 3), (0, 4), (1, 3)......]
There can be a lot more tuples, first element of which occurs mo