- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for breadthFirst (0.27 sec)
-
guava-tests/test/com/google/common/graph/TraverserTest.java
} @Test public void forGraph_breadthFirst_diamond() { Traverser<Character> traverser = Traverser.forGraph(DIAMOND_GRAPH); assertEqualCharNodes(traverser.breadthFirst('a'), "abcd"); assertEqualCharNodes(traverser.breadthFirst('b'), "bd"); assertEqualCharNodes(traverser.breadthFirst('c'), "cd"); assertEqualCharNodes(traverser.breadthFirst('d'), "d"); } @Test
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) -
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 {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Apr 21 20:17:27 GMT 2023 - 3.4K bytes - Viewed (0) -
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 {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Apr 21 20:17:27 GMT 2023 - 3.4K bytes - Viewed (0) -
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 {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 09 19:30:52 GMT 2018 - 3.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/TraverserTest.java
} @Test public void forGraph_breadthFirst_diamond() { Traverser<Character> traverser = Traverser.forGraph(DIAMOND_GRAPH); assertEqualCharNodes(traverser.breadthFirst('a'), "abcd"); assertEqualCharNodes(traverser.breadthFirst('b'), "bd"); assertEqualCharNodes(traverser.breadthFirst('c'), "cd"); assertEqualCharNodes(traverser.breadthFirst('d'), "d"); } @Test
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 47.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Traverser.java
* Iterables.limit(Traverser.forGraph(graph).breadthFirst(node), maxNumberOfNodes); * }</pre> * * <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)); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue May 30 20:12:45 GMT 2023 - 19.8K bytes - Viewed (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#breadthFirst} instead, which has the * same behavior. */ @Deprecated public final FluentIterable<T> breadthFirstTraversal(final T root) { checkNotNull(root); return new FluentIterable<T>() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 8.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Graphs.java
*/ public static <N> ImmutableSet<N> reachableNodes(Graph<N> graph, N node) { checkArgument(graph.nodes().contains(node), NODE_NOT_IN_GRAPH, node); return ImmutableSet.copyOf(Traverser.forGraph(graph).breadthFirst(node)); } // Graph mutation methods // Graph view methods /** * Returns a view of {@code graph} with the direction (if any) of every edge reversed. All other
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 21.2K bytes - Viewed (0)