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