Check if vertex u has successor v

def has_successor(self, u, v):
        """
        Check if vertex u has successor v
        """
        if u not in self.vertices:
            raise GraphInsertError("Vertex %s doesn't exist." % (u,))
        return (u in self.succ and v in self.succ[u])