- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for EdgesConnecting (0.05 sec)
-
android/guava/src/com/google/common/graph/EdgesConnecting.java
* * @author James Sexton * @param <E> Edge parameter type */ final class EdgesConnecting<E> extends AbstractSet<E> { private final Map<?, E> nodeToOutEdge; private final Object targetNode; EdgesConnecting(Map<?, E> nodeToEdgeMap, Object targetNode) { this.nodeToOutEdge = checkNotNull(nodeToEdgeMap); this.targetNode = checkNotNull(targetNode); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/graph/EdgesConnecting.java
* * @author James Sexton * @param <E> Edge parameter type */ final class EdgesConnecting<E> extends AbstractSet<E> { private final Map<?, E> nodeToOutEdge; private final Object targetNode; EdgesConnecting(Map<?, E> nodeToEdgeMap, Object targetNode) { this.nodeToOutEdge = checkNotNull(nodeToEdgeMap); this.targetNode = checkNotNull(targetNode); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
addNode(N1); addNode(N2); Set<String> edgesConnecting = network.edgesConnecting(N1, N2); assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23)); addEdge(N1, N2, E12); assertThat(network.edgesConnecting(N1, N2)).containsExactlyElementsIn(edgesConnecting); } @Override @Test public void inEdges_checkReturnedSetMutability() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 17:09:51 UTC 2025 - 19K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java
mutableNetwork.addEdge("A", "B", "AB"); Network<String, String> network = ImmutableNetwork.copyOf(mutableNetwork); assertThat(network.edgesConnecting("A", "A")).containsExactly("AA"); assertThat(network.edgesConnecting("A", "B")).containsExactly("AB"); assertThat(network.edgesConnecting("B", "A")).isEmpty(); } @Test public void edgesConnecting_undirected() { MutableNetwork<String, String> mutableNetwork =
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 17:09:51 UTC 2025 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
} @Override public @Nullable E edgeConnectingOrNull(N nodeU, N nodeV) { Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV); switch (edgesConnecting.size()) { case 0: return null; case 1: return edgesConnecting.iterator().next(); default: throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 10K bytes - Viewed (0) -
guava/src/com/google/common/graph/AbstractNetwork.java
} @Override public @Nullable E edgeConnectingOrNull(N nodeU, N nodeV) { Set<E> edgesConnecting = edgesConnecting(nodeU, nodeV); switch (edgesConnecting.size()) { case 0: return null; case 1: return edgesConnecting.iterator().next(); default: throw new IllegalArgumentException(String.format(MULTIPLE_EDGES_CONNECTING, nodeU, nodeV));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 10.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/GraphsTest.java
assertThat(directedGraph.edges()).isEmpty(); assertThat(directedGraph.addEdge(N1, N2, E12)).isTrue(); assertThat(directedGraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12)); assertThat(directedGraph.edgesConnecting(N2, N1)).isEmpty(); // By default, parallel edges are not allowed. IllegalArgumentException e =
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 17:09:51 UTC 2025 - 30.1K bytes - Viewed (0) -
guava/src/com/google/common/graph/GraphConstants.java
static final String MULTIPLE_EDGES_CONNECTING = "Cannot call edgeConnecting() when parallel edges exist between %s and %s. Consider calling " + "edgesConnecting() instead."; static final String PARALLEL_EDGES_NOT_ALLOWED = "Nodes %s and %s are already connected by a different edge. To construct a graph "Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Network.java
Set<E> adjacentEdges(E edge); /** * Returns a live view of the set of edges that each directly connect {@code nodeU} to {@code * nodeV}. * * <p>In an undirected network, this is equal to {@code edgesConnecting(nodeV, nodeU)}. * * <p>The resulting set of edges will be parallel (i.e. have equal {@link * #incidentNodes(Object)}). If this network does not {@link #allowsParallelEdges() allow parallel
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 07 15:57:03 UTC 2025 - 17.7K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ElementOrder.java
* <li>{@code inEdges(node)}: Edge insertion order * <li>{@code outEdges(node)}: Edge insertion order * <li>{@code adjacentEdges(edge)}: Stable order * <li>{@code edgesConnecting(nodeU, nodeV)}: Edge insertion order * </ul> * </ul> * * @since 29.0 */ public static <S> ElementOrder<S> stable() { return new ElementOrder<>(Type.STABLE, null); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 6.6K bytes - Viewed (0)