Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for breadthFirst (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        assertEqualCharNodes(traverser.breadthFirst(charactersOf("db")), "db");
      }
    
      @Test
      public void forGraph_breadthFirst_multiGraph() {
        Traverser<Character> traverser = Traverser.forGraph(MULTI_GRAPH);
        assertEqualCharNodes(traverser.breadthFirst('a'), "abcd");
        assertEqualCharNodes(traverser.breadthFirst('b'), "bd");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 47.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/Traverser.java

       * Iterables.limit(Traverser.forGraph(graph).breadthFirst(node), maxNumberOfNodes);
       * }
       *
       * <p>See <a href="https://en.wikipedia.org/wiki/Breadth-first_search">Wikipedia</a> for more
       * info.
       *
       * @throws IllegalArgumentException if {@code startNode} is not an element of the graph
       */
      public final Iterable<N> breadthFirst(N startNode) {
        return breadthFirst(ImmutableSet.of(startNode));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 19.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/TreeTraverser.java

       * is in progress or when the iterators generated by {@link #children} are advanced.
       *
       * @deprecated Use {@link com.google.common.graph.Traverser#breadthFirst} instead, which has the
       *     same behavior.
       */
      @Deprecated
      public final FluentIterable<T> breadthFirstTraversal(T root) {
        checkNotNull(root);
        return new FluentIterable<T>() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 18:39:06 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/Graphs.java

        switch (strategy) {
          case ADD_SELF_LOOPS_ALWAYS: // always include 'node'
            return traverser.breadthFirst(node);
          case ADD_SELF_LOOPS_FOR_CYCLES: // include 'node' iff there's an incident cycle
            // note that if 'node' has a self-loop, it will appear in its successors
            return traverser.breadthFirst(graph.successors(node));
        }
        throw new IllegalArgumentException("Unrecognized strategy: " + strategy);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
Back to Top