def find_parents(self):
        for i in range(len(self.vertices)):
            self.vertices[i].parents = []
        for i in range(len(self.vertices)):
            for child in self.vertices[i].children:
                if i not in self.vertices[child].parents:
                    self.vertices[child].parents.append(i)
The python version of the original mel script of Maya
dataset/ETHPy150Open SheffieldML/GPy/GPy/util/mocap.py/tree.find_parents--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/auxiliary.py/delete_shelf_tab