Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 254 for Unordered (0.2 sec)

  1. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

      @Parameters(name = "allowsSelfLoops={0}, incidentEdgeOrder={1}")
      public static Collection<Object[]> parameters() {
        return Arrays.asList(
            new Object[][] {
              {false, ElementOrder.unordered()},
              {true, ElementOrder.unordered()},
              {false, ElementOrder.stable()},
              {true, ElementOrder.stable()},
            });
      }
    
      private final boolean allowsSelfLoops;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .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 =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/ElementOrder.java

      public static <S> ElementOrder<S> unordered() {
        return new ElementOrder<>(Type.UNORDERED, null);
      }
    
      /**
       * Returns an instance which specifies that ordering is guaranteed to be always be the same across
       * iterations, and across releases. Some methods may have stronger guarantees.
       *
       * <p>This instance is only useful in combination with {@code incidentEdgeOrder}, e.g. {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/ElementOrder.java

      public static <S> ElementOrder<S> unordered() {
        return new ElementOrder<>(Type.UNORDERED, null);
      }
    
      /**
       * Returns an instance which specifies that ordering is guaranteed to be always be the same across
       * iterations, and across releases. Some methods may have stronger guarantees.
       *
       * <p>This instance is only useful in combination with {@code incidentEdgeOrder}, e.g. {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      @Test
      public void edges_containsOrderMismatch() {
        addEdge(N1, N2, E12);
        EndpointPair<Integer> endpointsN1N2 = EndpointPair.unordered(N1, N2);
        EndpointPair<Integer> endpointsN2N1 = EndpointPair.unordered(N2, N1);
        assertThat(network.asGraph().edges()).doesNotContain(endpointsN1N2);
        assertThat(network.asGraph().edges()).doesNotContain(endpointsN2N1);
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CollectCollectors.java

         */
        return Collector.of(
            () -> new ImmutableSortedMap.Builder<K, V>(comparator),
            (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)),
            ImmutableSortedMap.Builder::combine,
            ImmutableSortedMap.Builder::buildOrThrow,
            Collector.Characteristics.UNORDERED);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/EndpointPairIterator.java

              return EndpointPair.ordered(requireNonNull(node), successorIterator.next());
            }
            if (!advance()) {
              return endOfData();
            }
          }
        }
      }
    
      /**
       * If the graph is undirected, each unordered [node, otherNode] pair (except self-loops) will be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java

       *
       * <p>Note: This default implementation is overkill (but valid) for an unordered container. An
       * equally valid implementation for an unordered container is to throw an exception. The chosen
       * implementation, however, has the advantage of working for insertion-ordered containers, as
       * well.
       */
      @Override
      public List<String> order(List<String> insertionOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top