Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for EdgesConnecting (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
Back to top