code: public boolean add(int vertex) {
          if (!vertexToEdges.containsKey(vertex)) {
              vertexToEdges.put(vertex, new SparseWeightedDirectedTypedEdgeSet<T>(vertex));
              return true;
          }
          return false;
      }
docs: {@inheritDoc}