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