Connected Components as Equivalence Classes