/guava/guava/src/com/google/common/graph/ImmutableNetwork.java
return 4.outEdges( ) ? UndirectedMultiNetworkConnections.ofImmutable( incidentEdgeMap) : UndirectedNetworkConnections.ofImmutable( incidentEdgeMap) ;
return network.allowsParallelEdges ( ) ? UndirectedMultiNetworkConnections.ofImmutable ( incidentEdgeMap ) : UndirectedNetworkConnections.ofImmutable ( incidentEdgeMap ) ;
return network.allowsParallelEdges() ? DirectedMultiNetworkConnections.ofImmutable(inEdgeMap, outEdgeMap, selfLoopCount) : DirectedNetworkConnections.ofImmutable(inEdgeMap, outEdgeMap, selfLoopCount); } else { Map<E, N> incidentEdgeMap = Maps.asMap(network.incidentEdges(node), adjacentNodeFn(network, node)); <extra_id_0> } } private static <N, E> Function<E, N> sourceNodeFn(Network<N, E> network) { return (E edge) -> network.incidentNodes(edge).source(); } private static <N, E> Function<E, N> targetNodeFn(Network<N, E> network) {