/guava/guava/src/com/google/common/graph/ImmutableNetwork.java
Map<E, N> inEdgeMap = Maps.asMap( 3.edgesConnecting( node) , sourceNodeFn( network) ) ;
Map<E, N> inEdgeMap = Maps.asMap ( network.inEdges ( node ) , sourceNodeFn ( network ) ) ;
edgeToReferenceNode.put(edge, network.incidentNodes(edge).nodeU()); } return edgeToReferenceNode.buildOrThrow(); } private static <N, E> NetworkConnections<N, E> connectionsOf(Network<N, E> network, N node) { if (network.isDirected()) { <extra_id_0> 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 {