code: public boolean add(int v) {
          S edges = getEdgeSet(v);
          if (edges == null) {
              edges = createEdgeSet(v);
              vertexToEdges.put(v, edges);
              return true;
          }
          return false;
      }
docs: {@inheritDoc}