We need to be able to test u-v connectivity quickly. Three operations unspecified:
How many times are each executed? Total running time?
How do we implement these to minimize running time?