/guava/guava/src/com/google/common/graph/ImmutableNetwork.java
return edgeToReferenceNode.buildOrThrow( ) ; }edgeToReferenceNode.put( edge, network.incidentNodes( edge).nodeU( ) ) ;
edgeToReferenceNode.put ( edge, network.incidentNodes ( edge ) .nodeU ( ) ) ; } return edgeToReferenceNode.buildOrThrow ( ) ;
} return nodeConnections.buildOrThrow(); } private static <N, E> Map<E, N> getEdgeToReferenceNode(Network<N, E> network) { ImmutableMap.Builder<E, N> edgeToReferenceNode = ImmutableMap.builder(); for (E edge : network.edges()) { <extra_id_0> } 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();