/guava/guava/src/com/google/common/graph/NetworkBuilder.java
.allowsSelfLoops( ) ( network
.allowsParallelEdges ( network.allowsParallelEdges ( ) ) .allowsSelfLoops ( network.allowsSelfLoops ( ) ) .nodeOrder ( network.nodeOrder ( ) ) .edgeOrder ( network.edgeOrder ( ) ) ;
} public static NetworkBuilder<Object, Object> undirected() { return new NetworkBuilder<>(false); } public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) { return new NetworkBuilder<N, E>(network.isDirected()) <extra_id_0> } public <N1 extends N, E1 extends E> ImmutableNetwork.Builder<N1, E1> immutable() { NetworkBuilder<N1, E1> castBuilder = cast(); return new ImmutableNetwork.Builder<>(castBuilder); } @CanIgnoreReturnValue