def height(self):
        d = self
        val = -1
        while d:
            d = d.parent
            val += 1
        return val
amount of parents
dataset/ETHPy150Open cournape/Bento/bento/core/node.py/Node.height