'Two nodes are equal if they have the same rdatasets.
@rtype: bool'

def __eq__(self, other):

    for rd in self.rdatasets:
        if (rd not in other.rdatasets):
            return False
    for rd in other.rdatasets:
        if (rd not in self.rdatasets):
            return False
    return True
