'Compare two nodes for inequality.
This calls the method _eq().'

def __ne__(self, other):

    if (self.__class__ is not other.__class__):
        return NotImplemented
    return (not self._eq(other))
