Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for ElementOrder (0.07 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. 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)
  5. 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)
  6. android/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)
  7. android/guava/src/com/google/common/graph/NetworkBuilder.java

     * @since 20.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public final class NetworkBuilder<N, E> extends AbstractGraphBuilder<N> {
      boolean allowsParallelEdges = false;
      ElementOrder<? super E> edgeOrder = ElementOrder.insertion();
      Optional<Integer> expectedEdgeCount = Optional.absent();
    
      /** Creates a new instance with the specified edge directionality. */
      private NetworkBuilder(boolean directed) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ImmutableGraph.java

       */
      @Deprecated
      public static <N> ImmutableGraph<N> copyOf(ImmutableGraph<N> graph) {
        return checkNotNull(graph);
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return ElementOrder.stable();
      }
    
      private static <N> ImmutableMap<N, GraphConnections<N, Presence>> getNodeConnections(
          Graph<N> graph) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractValueGraph.java

          public boolean allowsSelfLoops() {
            return AbstractValueGraph.this.allowsSelfLoops();
          }
    
          @Override
          public ElementOrder<N> nodeOrder() {
            return AbstractValueGraph.this.nodeOrder();
          }
    
          @Override
          public ElementOrder<N> incidentEdgeOrder() {
            return AbstractValueGraph.this.incidentEdgeOrder();
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

       */
      @Deprecated
      public static <N, V> ImmutableValueGraph<N, V> copyOf(ImmutableValueGraph<N, V> graph) {
        return checkNotNull(graph);
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return ElementOrder.stable();
      }
    
      @Override
      public ImmutableGraph<N> asGraph() {
        return new ImmutableGraph<>(this); // safe because the view is effectively immutable
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
Back to top