<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hasEdge(self, diff):
 """ Test whether edge is in this sink. """

        return diff.toVol in [d.toVol for d in self.diffs[diff.fromVol]]