Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for EndpointPair (0.19 sec)

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

    @ElementTypesAreNonnullByDefault
    public abstract class EndpointPair<N> implements Iterable<N> {
      private final N nodeU;
      private final N nodeV;
    
      private EndpointPair(N nodeU, N nodeV) {
        this.nodeU = checkNotNull(nodeU);
        this.nodeV = checkNotNull(nodeV);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of a directed edge. */
      public static <N> EndpointPair<N> ordered(N source, N target) {
    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)
  2. android/guava/src/com/google/common/graph/EndpointPairIterator.java

       * Visited Nodes = {N1}
       * EndpointPair [N2, N1] - skip
       * EndpointPair [N2, N3] - return
       * Visited Nodes = {N1, N2}
       * EndpointPair [N3, N1] - skip
       * EndpointPair [N3, N2] - skip
       * Visited Nodes = {N1, N2, N3}
       * EndpointPair [N4, N4] - return
       * Visited Nodes = {N1, N2, N3, N4}
       * </pre>
       */
      private static final class Undirected<N> extends EndpointPairIterator<N> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/EndpointPairTest.java

          network.addEdge(1, 2, "1-2");
          EndpointPair<Integer> endpointPair = network.incidentNodes("1-2");
          assertThrows(IllegalArgumentException.class, () -> endpointPair.adjacentNode(3));
        }
      }
    
      @Test
      public void testEquals() {
        EndpointPair<String> ordered = EndpointPair.ordered("a", "b");
        EndpointPair<String> orderedMirror = EndpointPair.ordered("b", "a");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

          network.addEdge(1, 2, "1-2");
          EndpointPair<Integer> endpointPair = network.incidentNodes("1-2");
          assertThrows(IllegalArgumentException.class, () -> endpointPair.adjacentNode(3));
        }
      }
    
      @Test
      public void testEquals() {
        EndpointPair<String> ordered = EndpointPair.ordered("a", "b");
        EndpointPair<String> orderedMirror = EndpointPair.ordered("b", "a");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .putEdgeValue(2, 3, "2-3")
                .putEdgeValue(1, 2, "1-2")
                .build();
    
        assertThat(graph.incidentEdges(2))
            .containsExactly(
                EndpointPair.ordered(2, 1), EndpointPair.ordered(2, 3), EndpointPair.ordered(1, 2))
            .inOrder();
      }
    
      @Test
      public void immutableValueGraphBuilder_incidentEdgeOrder_stable() {
        ImmutableValueGraph<Integer, String> graph =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

        setDistinctValues(NetworkBuilder.class, NETWORK_BUILDER_A, NETWORK_BUILDER_B);
        setDistinctValues(Network.class, IMMUTABLE_NETWORK_A, IMMUTABLE_NETWORK_B);
        setDefault(EndpointPair.class, EndpointPair.ordered("A", "B"));
      }
    
      @Override
      public void testNulls() throws Exception {
        try {
          super.testNulls();
        } catch (AssertionFailedError e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  7. 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) {
    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)
  8. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

          // Graph<LinkedList>.
          @SuppressWarnings("unchecked")
          @Override
          public boolean contains(@CheckForNull Object obj) {
            if (!(obj instanceof EndpointPair)) {
              return false;
            }
            EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
            return isOrderingCompatible(endpointPair)
    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)
  9. android/guava/src/com/google/common/graph/IncidentEdgeSet.java

      public boolean contains(@CheckForNull Object obj) {
        if (!(obj instanceof EndpointPair)) {
          return false;
        }
        EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
    
        if (graph.isDirected()) {
          if (!endpointPair.isOrdered()) {
            return false;
          }
    
          Object source = endpointPair.source();
          Object target = endpointPair.target();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/MutableValueGraph.java

       *     #allowsSelfLoops()}
       * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
       * @since 27.1
       */
      @CanIgnoreReturnValue
      @CheckForNull
      V putEdgeValue(EndpointPair<N> endpoints, V value);
    
      /**
       * Removes {@code node} if it is present; all edges incident to {@code node} will also be removed.
       *
       * @return {@code true} if the graph was modified as a result of this call
    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)
Back to top