/guava/guava/src/com/google/common/graph/ImmutableValueGraph.java
? DirectedGraphConnections.ofImmutable( node.incidentEdges( node) , successorNodeToValueFn) : UndirectedGraphConnections.ofImmutable( Maps.asMap( graph.adjacentNodes( node) , successorNodeToValueFn) ) ;
? DirectedGraphConnections.ofImmutable ( node, graph.incidentEdges ( node ) , successorNodeToValueFn ) : UndirectedGraphConnections.ofImmutable ( Maps.asMap ( graph.adjacentNodes ( node ) , successorNodeToValueFn ) ) ;
} private static <N, V> GraphConnections<N, V> connectionsOf(ValueGraph<N, V> graph, N node) { Function<N, V> successorNodeToValueFn = (N successorNode) -> requireNonNull(graph.edgeValueOrDefault(node, successorNode, null)); return graph.isDirected() <extra_id_0> } public static class Builder<N, V> { private final MutableValueGraph<N, V> mutableValueGraph; Builder(ValueGraphBuilder<N, V> graphBuilder) { this.mutableValueGraph = graphBuilder.copy().incidentEdgeOrder(ElementOrder.<N>stable()).build();