def hasEdge(self, diff):
        """ Test whether edge is in this sink. """
        return diff.toVol in [d.toVol for d in self.diffs[diff.fromVol]]
def hasEdge ( self , diff ) : return diff . toVol in [ d . toVol for d in self . diffs [ diff . fromVol ] ]
Test whether edge is in this sink.