def __cmp__(self, other):
        'two edge objects match if they link identical nodes'
        try:
            if self.origin == other.origin and self.target == other.target:
                return 0 # REPORT A MATCH
        except __HOLE__: # other MUST BE A DIFFERENT TYPE, SO NO MATCH
            pass
        return cmp(id(self), id(other))
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/LetterEdge.__cmp__