Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for ElementOrder (0.04 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 6.6K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. android/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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

            NetworkBuilder.directed()
                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .<String, Integer>immutable()
                .build();
    
        assertThat(emptyNetwork.isDirected()).isTrue();
        assertThat(emptyNetwork.allowsSelfLoops()).isTrue();
        assertThat(emptyNetwork.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/NetworkBuilder.java

     * @since 20.0
     */
    @Beta
    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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/StandardValueGraph.java

     * @param <V> Value parameter type
     */
    class StandardValueGraph<N, V> extends AbstractValueGraph<N, V> {
      private final boolean isDirected;
      private final boolean allowsSelfLoops;
      private final ElementOrder<N> nodeOrder;
    
      final MapIteratorCache<N, GraphConnections<N, V>> nodeConnections;
    
      long edgeCount; // must be updated when edges are added or removed
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ArchetypeGraph.java

       * IllegalArgumentException}.
       */
      boolean allowsSelfLoops();
    
      /** Returns the order of iteration for the elements of {@link #nodes()}. */
      ElementOrder<N> nodeOrder();
    
      //
      // Element-level accessors
      //
    
      /**
       * Returns a live view of the nodes which have an incident edge in common with {@code node} in
       * this graph.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 11 17:11:16 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top