def __eq__(self, other):
        if other is None:
            return False
        try:
            other = cast_relationship(other)
        except __HOLE__:
            return False
        else:
            remote_self = remote(self)
            remote_other = remote(other)
            if remote_self and remote_other:
                return remote_self == remote_other
            else:
                return (self.nodes() == other.nodes() and size(other) == 1 and
                        self.type() == other.type() and dict(self) == dict(other))
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/types.py/Relationship.__eq__