def add_child(self, obj):
        """Add a child to the node."""
        self.children.append(obj)
        obj.parents.append(self)
def add_child ( self , obj ) : self . children . append ( obj ) obj . parents . append ( self )
Add a child to the node.