code: def connect(self, f, t):
          
          if t not in self._vertices:
              raise KeyError(t)
          self._forwards[f].add(t)
          self._backwards[t].add(f)
docs: Connect two existing vertices.
  
          Nothing happens if the vertices are already connected.