def find(self, x):
        if self.up[x] == x:
            return x
        else:
            self.up[x] = self.find(self.up[x])
            return self.up[x]
An iterator of all elements.
dataset/ETHPy150Open jilljenn/tryalgo/tryalgo/kruskal.py/UnionFind.find--crossover with--dataset/ETHPy150Open Stiivi/brewery/brewery/nodes/base.py/Stack.items