code: public void add(Object vertex) {
          if (vertex == null || vertices.containsKey(vertex)) {
              return;
          }
  
          checkGraphSize();
  
          vertices.put(vertex, new VertexMetadata(freeList.removeFirst()));
          vertexModCount++;
      }
docs: Adds a vertex.
  
  @param vertex
  a vertex.