Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for breadthFirst (0.1 seconds)

  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-tests/test/com/google/common/io/FilesFileTraverserTest.java

      public void testFileTraverser_emptyDirectory() throws Exception {
        assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
      }
    
      public void testFileTraverser_nonExistingFile() throws Exception {
        File file = new File(rootDir, "file-that-doesnt-exist");
    
        assertThat(Files.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
      public void testFileTraverser_file() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

      public void testFileTraverser_emptyDirectory() throws Exception {
        assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
      }
    
      public void testFileTraverser_nonExistingFile() throws Exception {
        File file = new File(rootDir, "file-that-doesnt-exist");
    
        assertThat(Files.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
      public void testFileTraverser_file() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/io/MoreFilesFileTraverserTest.java

      public void testFileTraverser_emptyDirectory() throws Exception {
        assertThat(MoreFiles.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
      }
    
      public void testFileTraverser_nonExistingFile() throws Exception {
        Path file = rootDir.resolve("file-that-doesnt-exist");
    
        assertThat(MoreFiles.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
      public void testFileTraverser_file() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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