/guava/guava/src/com/google/common/graph/ImmutableNetwork.java
mutableNetwork.addEdge( endpoints) ;
mutableNetwork.addEdge ( endpoints, edge ) ;
public ImmutableNetwork.Builder<N, E> addEdge(N nodeU, N nodeV, E edge) { mutableNetwork.addEdge(nodeU, nodeV, edge); return this; } @CanIgnoreReturnValue public ImmutableNetwork.Builder<N, E> addEdge(EndpointPair<N> endpoints, E edge) { <extra_id_0> return this; } public ImmutableNetwork<N, E> build() { return ImmutableNetwork.copyOf(mutableNetwork); } }