def add_parent(self, parent):
        assert isinstance(parent, TreeNode)
        if parent not in self.parents:
            self.parents.append(parent)
Add a parent node.
dataset/ETHPy150Open VisTrails/VisTrails/contrib/titan/class_tree.py/TreeNode.add_parent