For union set, i am not sure how can we check whether the given relation is equivalence or not..
We cannot represent other relations using union-set method unlike the graph method..
I mean once we know a given relation is equivalence, we can efficiently represent it using the union-set data structure. But to check whether the given relation is equivalence, i think we need to go through the similar procedure given above first..