(self, other)
return -1
Compare this node with other

        :param other: the other GTreeNodeGP
Compare this node with other
Compare this node with other
def compare(self, other):
        """ Compare this node with other

        :param other: the other GTreeNodeGP
        """
        if not isinstance(other, GTreeNodeGP):
            Util.raiseException("The other node used to compare is not a GTreeNodeGP class", TypeError)

        if other.node_type == self.node_type:
            if other.node_data == self.node_data:
                return 0
        return -1
def compare ( self , other ) : if not isinstance ( other , GTreeNodeGP ) : Util . raiseException ( "The other node used to compare is not a GTreeNodeGP class" , TypeError ) if other . node_type == self . node_type : if other . node_data == self . node_data : return 0 return - 1