android/guava/src/com/google/common/graph/ValueGraphBuilder.java
public ValueGraphBuilder<N, V> expectedNodeCount(int expectedNodeCount) {
    this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
    return this;
  }
public ValueGraphBuilder<N, V> expectedNodeCount(int expectedNodeCount) {
    this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
    return this;
  }
public ValueGraphBuilder < N , V > expectedNodeCount ( int expectedNodeCount ) { this . expectedNodeCount = Optional . of ( checkNonNegative ( expectedNodeCount ) ) ; return this ; }
Specifies the expected number of nodes in the graph.

@throws IllegalArgumentException if {@code expectedNodeCount} is negative
Specifies the expected number of nodes in the graph .