- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for depthFirstPreOrder (0.07 seconds)
-
android/guava-tests/test/com/google/common/graph/TraverserTest.java
assertEqualCharNodes(traverser.depthFirstPreOrder('c'), "cdab"); assertEqualCharNodes(traverser.depthFirstPreOrder('d'), "dabc"); } @Test public void forGraph_depthFirstPreOrderIterable_cycle() { Traverser<Character> traverser = Traverser.forGraph(CYCLE_GRAPH); assertEqualCharNodes(traverser.depthFirstPreOrder(charactersOf("a")), "abcd");
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) -
android/guava/src/com/google/common/graph/Traverser.java
* Iterables.limit(Traverser.forGraph(graph).depthFirstPreOrder(node), maxNumberOfNodes); * } * * <p>See <a href="https://en.wikipedia.org/wiki/Depth-first_search">Wikipedia</a> for more info. * * @throws IllegalArgumentException if {@code startNode} is not an element of the graph */ public final Iterable<N> depthFirstPreOrder(N startNode) { return depthFirstPreOrder(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) -
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#depthFirstPreOrder} instead, which has * the same behavior. */ @Deprecated public final FluentIterable<T> preOrderTraversal(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) -
android/guava/src/com/google/common/io/Files.java
* a directory, no exception will be thrown and the returned {@link Iterable} will contain a * single element: that file. * * <p>Example: {@code Files.fileTraverser().depthFirstPreOrder(new File("/"))} may return files * with the following paths: {@code ["/", "/etc", "/etc/config.txt", "/etc/fonts", "/home", * "/home/alice", ...]} * * @since 23.5 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 32.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/MoreFiles.java
* created by this traverser if an {@link IOException} is thrown by a call to {@link * #listFiles(Path)}. * * <p>Example: {@code MoreFiles.fileTraverser().depthFirstPreOrder(Paths.get("/"))} may return the * following paths: {@code ["/", "/etc", "/etc/config.txt", "/etc/fonts", "/home", "/home/alice", * ...]} * * @since 23.5 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:07:06 GMT 2025 - 34.6K bytes - Click Count (0)