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

@throws IllegalArgumentException if {@code expectedNodeCount} is negative