def find(self, x):
        if self.up[x] == x:
            return x
        else:
            self.up[x] = self.find(self.up[x])
            return self.up[x]
:returns: identifier of part containing x
dataset/ETHPy150Open jilljenn/tryalgo/tryalgo/kruskal.py/UnionFind.find