(self, node)
Swaps the node data and type with another node

        :param node: the node
Swaps the node data and type with another node
Swaps the node data and type with another node
def swapNodeData(self, node):
        """Swaps the node data and type with another node

        :param node: the node
        """
        tmp_data = self.node_data
        tmp_type = self.node_type
        self.setData(node.getData())
        self.setType(node.getType())
        node.setData(tmp_data)
        node.setType(tmp_type)
def swapNodeData ( self , node ) : tmp_data = self . node_data tmp_type = self . node_type self . setData ( node . getData ( ) ) self . setType ( node . getType ( ) ) node . setData ( tmp_data ) node . setType ( tmp_type )