code: public void addVertex(V vertex) {
          if (containsVertex(vertex)) {
              return;
          }
  
          neighbors.put(vertex, new ArrayList<V>());
      }
docs: Add a vertex to the graph. Nothing happens if vertex is already in graph.