code: def add(self, key):
          
          if key in self._vertices:
              raise ValueError('vertex exists')
          self._vertices.add(key)
          self._forwards[key] = set()
          self._backwards[key] = set()
docs: Add a new vertex to the graph.