def _pi(self, item):
        pi = self.pi[item]
        if item != pi:
            self.pi[item] = self._pi(pi)

        return self.pi[item]
dataset/ETHPy150Open algorhythms/LintCode/Number of Islands II.py/UnionFind._pi/original