Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for breadthFirstTraversal (0.34 sec)

  1. guava-tests/test/com/google/common/collect/TreeTraverserTest.java

      }
    
      public void testPostOrder() {
        assertThat(iterationOrder(ADAPTER.postOrderTraversal(h))).isEqualTo("abcdefgh");
      }
    
      public void testBreadthOrder() {
        assertThat(iterationOrder(ADAPTER.breadthFirstTraversal(h))).isEqualTo("hdegabcf");
      }
    
      public void testUsing() {
        assertThat(iterationOrder(ADAPTER_USING_USING.preOrderTraversal(h))).isEqualTo("hdabcegf");
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeTraverser.java

       *
       * @deprecated Use {@link com.google.common.graph.Traverser#breadthFirst} instead, which has the
       *     same behavior.
       */
      @Deprecated
      public final FluentIterable<T> breadthFirstTraversal(final T root) {
        checkNotNull(root);
        return new FluentIterable<T>() {
          @Override
          public UnmodifiableIterator<T> iterator() {
            return new BreadthFirstIterator(root);
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top