code: def has_successor(self, u, 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])
docs: Check if vertex u has successor v