Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for edgeConnecting (0.09 sec)

  1. guava/src/com/google/common/graph/Network.java

       *
       * <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
       * edges}, the resulting set will contain at most one edge (equivalent to {@code
       * edgeConnecting(nodeU, nodeV).asSet()}).
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/Graphs.java

        }
    
        @Override
        public Set<E> edgesConnecting(N nodeU, N nodeV) {
          return delegate().edgesConnecting(nodeV, nodeU); // transpose
        }
    
        @Override
        public Set<E> edgesConnecting(EndpointPair<N> endpoints) {
          return delegate().edgesConnecting(transpose(endpoints));
        }
    
        @Override
        public Optional<E> edgeConnecting(N nodeU, N nodeV) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/GraphConstants.java

              + "so it cannot be reused to connect the following nodes: %s.";
      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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertTrue(networkAsMutableNetwork.removeEdge(E11_A));
        assertThat(network.edgesConnecting(N1, N1)).containsExactly(E11);
        assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12);
        assertTrue(networkAsMutableNetwork.removeEdge(E11));
        assertThat(network.edgesConnecting(N1, N1)).isEmpty();
        assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12);
      }
    
      @Test
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

        network.addNode(N1);
        network.addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
        network.addEdge(N1, N2, E12);
        assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactlyElementsIn(edgesConnecting);
      }
    
      @Test
      public void edgesConnecting_oneEdge() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top