Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 241 for Unordered (0.07 seconds)

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

      public static <N> EndpointPair<N> ordered(N source, N target) {
        return new Ordered<>(source, target);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of an undirected edge. */
      public static <N> EndpointPair<N> unordered(N nodeU, N nodeV) {
        // Swap nodes on purpose to prevent callers from relying on the "ordering" of an unordered pair.
        return new Unordered<>(nodeV, nodeU);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

            .containsExactly("chicken", "egg");
        assertThat(unordered.adjacentNode(unordered.nodeU())).isEqualTo(unordered.nodeV());
        assertThat(unordered.adjacentNode(unordered.nodeV())).isEqualTo(unordered.nodeU());
        assertThat(unordered.toString()).contains("chicken");
        assertThat(unordered.toString()).contains("egg");
      }
    
      @Test
      public void testSelfLoop() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/graph/EndpointPairTest.java

            .containsExactly("chicken", "egg");
        assertThat(unordered.adjacentNode(unordered.nodeU())).isEqualTo(unordered.nodeV());
        assertThat(unordered.adjacentNode(unordered.nodeV())).isEqualTo(unordered.nodeU());
        assertThat(unordered.toString()).contains("chicken");
        assertThat(unordered.toString()).contains("egg");
      }
    
      @Test
      public void testSelfLoop() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/graph/ElementOrderTest.java

    @NullUnmarked
    public final class ElementOrderTest {
      // Node order tests
    
      @Test
      public void nodeOrder_none() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(unordered()).build();
    
        assertThat(graph.nodeOrder()).isEqualTo(unordered());
      }
    
      @Test
      public void nodeOrder_insertion() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(insertion()).build();
    
        addNodes(graph);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/MutableGraph.java

      boolean removeEdge(N nodeU, N nodeV);
    
      /**
       * Removes the edge connecting {@code endpoints}, if it is present.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
       * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
       * @return {@code true} if the graph was modified as a result of this call
       * @since 27.1
       */
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/GraphBuilder.java

       *
       * <p>The default value is {@link ElementOrder#unordered() unordered} for mutable graphs. For
       * immutable graphs, this value is ignored; they always have a {@link ElementOrder#stable()
       * stable} order.
       *
       * @throws IllegalArgumentException if {@code incidentEdgeOrder} is not either {@code
       *     ElementOrder.unordered()} or {@code ElementOrder.stable()}.
       * @since 29.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  7. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

       *
       * <p>The default value is {@link ElementOrder#unordered() unordered} for mutable graphs. For
       * immutable graphs, this value is ignored; they always have a {@link ElementOrder#stable()
       * stable} order.
       *
       * @throws IllegalArgumentException if {@code incidentEdgeOrder} is not either {@code
       *     ElementOrder.unordered()} or {@code ElementOrder.stable()}.
       * @since 29.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  9. 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 =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        assertThat(network.incidentNodes(10)).isEqualTo(EndpointPair.ordered("A", "B"));
      }
    
      @Test
      public void immutableNetworkBuilder_putEdgeFromEndpointPair() {
        ImmutableNetwork<String, Integer> network =
            NetworkBuilder.directed()
                .<String, Integer>immutable()
                .addEdge(EndpointPair.ordered("A", "B"), 10)
                .build();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 5.4K bytes
    - Click Count (0)
Back to Top