Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for ElementOrder (0.12 sec)

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

       *       </ul>
       * </ul>
       *
       * @since 29.0
       */
      public static <S> ElementOrder<S> stable() {
        return new ElementOrder<>(Type.STABLE, null);
      }
    
      /** Returns an instance which specifies that insertion ordering is guaranteed. */
      public static <S> ElementOrder<S> insertion() {
        return new ElementOrder<>(Type.INSERTION, null);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/ElementOrder.java

       *       </ul>
       * </ul>
       *
       * @since 29.0
       */
      public static <S> ElementOrder<S> stable() {
        return new ElementOrder<>(Type.STABLE, null);
      }
    
      /** Returns an instance which specifies that insertion ordering is guaranteed. */
      public static <S> ElementOrder<S> insertion() {
        return new ElementOrder<>(Type.INSERTION, null);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(network.edgeOrder()).isEqualTo(ElementOrder.insertion());
        assertThat(network.edges()).containsExactly("i", "e", "p").inOrder();
        assertThat(network.nodeOrder()).isEqualTo(ElementOrder.insertion()); // default
      }
    
      @Test
      public void edgeOrder_natural() {
        MutableNetwork<Integer, String> network =
            NetworkBuilder.directed().edgeOrder(ElementOrder.<String>natural()).build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

      public static Collection<Object[]> parameters() {
        ElementOrder<?> naturalElementOrder = ElementOrder.sorted(Ordering.natural());
    
        return Arrays.asList(
            new Object[][] {
              {false, false, ElementOrder.insertion(), ElementOrder.insertion()},
              {true, false, ElementOrder.insertion(), ElementOrder.insertion()},
              {false, false, naturalElementOrder, naturalElementOrder},
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        assertThat(immutableValueGraph.incidentEdgeOrder()).isEqualTo(ElementOrder.stable());
      }
    
      @Test
      public void incidentEdgeOrder_fromUnorderedGraph_stable() {
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(
                ValueGraphBuilder.directed()
                    .incidentEdgeOrder(ElementOrder.unordered())
                    .<String, Integer>build());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

          ElementOrder<N1> incidentEdgeOrder) {
        checkArgument(
            incidentEdgeOrder.type() == ElementOrder.Type.UNORDERED
                || incidentEdgeOrder.type() == ElementOrder.Type.STABLE,
            "The given elementOrder (%s) is unsupported. incidentEdgeOrder() only supports"
                + " ElementOrder.unordered() and ElementOrder.stable().",
            incidentEdgeOrder);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

        return Arrays.asList(
            new Object[][] {
              {false, ElementOrder.unordered()},
              {true, ElementOrder.unordered()},
              {false, ElementOrder.stable()},
              {true, ElementOrder.stable()},
            });
      }
    
      private final boolean allowsSelfLoops;
      private final ElementOrder<Integer> incidentEdgeOrder;
    
      public StandardMutableUndirectedGraphTest(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

            GraphBuilder.directed()
                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .immutable()
                .build();
    
        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

            GraphBuilder.directed()
                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .immutable()
                .build();
    
        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
Back to top