Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Endpoints (0.18 sec)

  1. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

        }
        return previousValue;
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public V putEdgeValue(EndpointPair<N> endpoints, V value) {
        validateEndpoints(endpoints);
        return putEdgeValue(endpoints.nodeU(), endpoints.nodeV(), value);
      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean removeNode(N node) {
        checkNotNull(node, "node");
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Oct 21 01:50:30 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
        e =
            assertThrows(
                IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.unordered(2, 1)));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
      }
    
      @Test
      public void edgeValue_undirected_correct() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/MutableValueGraph.java

      /**
       * Removes the edge connecting {@code endpoints}, if it is present.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
       * @return the value previously associated with the edge connecting {@code endpoints}, or null if
       *     there was no such edge.
       * @since 27.1
       */
      @CanIgnoreReturnValue
      @CheckForNull
      V removeEdge(EndpointPair<N> endpoints);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ForwardingNetwork.java

      @Override
      public Set<E> edgesConnecting(EndpointPair<N> endpoints) {
        return delegate().edgesConnecting(endpoints);
      }
    
      @Override
      @CheckForNull
      public E edgeConnectingOrNull(N nodeU, N nodeV) {
        return delegate().edgeConnectingOrNull(nodeU, nodeV);
      }
    
      @Override
      @CheckForNull
      public E edgeConnectingOrNull(EndpointPair<N> endpoints) {
        return delegate().edgeConnectingOrNull(endpoints);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/EndpointPair.java

    /**
     * An immutable pair representing the two endpoints of an edge in a graph. The {@link EndpointPair}
     * of a directed edge is an ordered pair of nodes ({@link #source()} and {@link #target()}). The
     * {@link EndpointPair} of an undirected edge is an unordered pair of nodes ({@link #nodeU()} and
     * {@link #nodeV()}).
     *
     * <p>The edge is a self-loop if, and only if, the two endpoints are equal.
     *
     * @author James Sexton
     * @since 20.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 8.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/MutableGraph.java

      /**
       * Adds an edge connecting {@code endpoints} (in the order, if any, specified by {@code
       * endpoints}) if one is not already present.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered and the added edge will be
       * directed; if it is undirected, the added edge will be undirected.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ImmutableGraph.java

        /**
         * Adds an edge connecting {@code endpoints} (in the order, if any, specified by {@code
         * endpoints}) if one is not already present.
         *
         * <p>If this graph is directed, {@code endpoints} must be ordered and the added edge will be
         * directed; if it is undirected, the added edge will be undirected.
         *
         * <p>If this graph is directed, {@code endpoints} must be ordered.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ImmutableNetwork.java

         * must also be non-null.
         *
         * <p>If either or both endpoints are not already present in this network, this method will
         * silently {@link #addNode(Object) add} each missing endpoint to the network.
         *
         * <p>If {@code edge} already connects an endpoint pair equal to {@code endpoints}, then this
         * method will have no effect.
         *
         * @return this {@code Builder} object
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        EndpointPair<Integer> endpoints = EndpointPair.unordered(N1, N2);
        IllegalArgumentException e =
            assertThrows(IllegalArgumentException.class, () -> graphAsMutableGraph.putEdge(endpoints));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

        checkNotNull(endpoints);
        checkArgument(isOrderingCompatible(endpoints), ENDPOINTS_MISMATCH);
      }
    
      /**
       * Returns {@code true} iff {@code endpoints}' ordering is compatible with the directionality of
       * this graph.
       */
      protected final boolean isOrderingCompatible(EndpointPair<?> endpoints) {
        return endpoints.isOrdered() == this.isDirected();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
Back to top