Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for shape (0.13 sec)

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

                EndpointPair.unordered(1, 1),
                EndpointPair.unordered(1, 3))
            .inOrder();
      }
    
      /**
       * Populates the graph with nodes and edges in a star shape with node `1` in the middle.
       *
       * <p>Note that the edges are added in a shuffled order to properly test the effect of the
       * insertion order.
       */
      private void populateTShapedGraph() {
        putEdge(2, 1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

                EndpointPair.ordered(1, 1),
                EndpointPair.ordered(1, 3),
                EndpointPair.ordered(1, 2))
            .inOrder();
      }
    
      /**
       * Populates the graph with nodes and edges in a star shape with node `1` in the middle.
       *
       * <p>Note that the edges are added in a shuffled order to properly test the effect of the
       * insertion order.
       */
      private void populateStarShapedGraph() {
        putEdge(2, 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

                EndpointPair.ordered(1, 1),
                EndpointPair.ordered(1, 3),
                EndpointPair.ordered(1, 2))
            .inOrder();
      }
    
      /**
       * Populates the graph with nodes and edges in a star shape with node `1` in the middle.
       *
       * <p>Note that the edges are added in a shuffled order to properly test the effect of the
       * insertion order.
       */
      private void populateStarShapedGraph() {
        putEdge(2, 1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

                EndpointPair.unordered(1, 1),
                EndpointPair.unordered(1, 3))
            .inOrder();
      }
    
      /**
       * Populates the graph with nodes and edges in a star shape with node `1` in the middle.
       *
       * <p>Note that the edges are added in a shuffled order to properly test the effect of the
       * insertion order.
       */
      private void populateTShapedGraph() {
        putEdge(2, 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          return samples;
        }
    
        @Override
        public Set<V> create(Object... elements) {
          @SuppressWarnings("unchecked")
          V[] valuesArray = (V[]) elements;
    
          // Start with a suitably shaped collection of entries
          Collection<Entry<K, V>> originalEntries = mapGenerator.getSampleElements(elements.length);
    
          // Create a copy of that, with the desired value for each value
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

      }
    
      @Override
      public boolean containsAll(Collection<?> targets) {
        // TODO(jlevy): For optimal performance, use a binary search when
        // targets.size() < size() / log(size())
        // TODO(kevinb): see if we can share code with OrderedIterator after it
        // graduates from labs.
        if (targets instanceof Multiset) {
          targets = ((Multiset<?>) targets).elementSet();
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/TraverserTest.java

       * |      |
       * e ---- c ---- f
       * }</pre>
       */
      private static final SuccessorsFunction<Character> JAVADOC_GRAPH =
          createUndirectedGraph("ba", "ad", "be", "ac", "ec", "cf");
    
      /**
       * A diamond shaped directed graph (arrows going down):
       *
       * <pre>{@code
       *   a
       *  / \
       * b   c
       *  \ /
       *   d
       * }</pre>
       */
      private static final SuccessorsFunction<Character> DIAMOND_GRAPH =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            makeMap(createMapMaker().concurrencyLevel(concurrencyLevel));
        assertThat(map.segments).hasLength(segmentCount);
      }
    
      public void testSetInitialCapacity() {
        // share capacity over each segment, then round up to the nearest power of two
    
        checkInitialCapacity(1, 0, 1);
        checkInitialCapacity(1, 1, 1);
        checkInitialCapacity(1, 2, 2);
        checkInitialCapacity(1, 3, 4);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            makeMap(createMapMaker().concurrencyLevel(concurrencyLevel));
        assertThat(map.segments).hasLength(segmentCount);
      }
    
      public void testSetInitialCapacity() {
        // share capacity over each segment, then round up to the nearest power of two
    
        checkInitialCapacity(1, 0, 1);
        checkInitialCapacity(1, 1, 1);
        checkInitialCapacity(1, 2, 2);
        checkInitialCapacity(1, 3, 4);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          // been acquired. For unordered locks, aboutToAcquire() ensures this by
          // checking isAcquiredByCurrentThread(). For ordered locks, however, this
          // can happen because multiple locks may share the same LockGraphNode. In
          // this situation, throw an IllegalStateException as defined by contract
          // described in the documentation of WithExplicitOrdering.
          Preconditions.checkState(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
Back to top