def __eq__(self, other):

        if other is None:
            return False
        return type(self) is type(other) and self.id == other.id
Comparison of two graph elements by ID.
dataset/ETHPy150Open cidles/graf-python/src/graf/graphs.py/GraphElement.__eq__