MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / bfs_all_labels

Function bfs_all_labels

nodedb-graph/src/traversal.rs:374–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373 #[test]
374 fn bfs_all_labels() {
375 let csr = make_csr();
376 let mut result =
377 csr.traverse_bfs(&["a"], None, Direction::Out, 1, DEFAULT_MAX_VISITED, None);
378 result.sort();
379 assert_eq!(result, vec!["a", "b", "e"]);
380 }
381
382 #[test]
383 fn bfs_cycle() {

Callers

nothing calls this directly

Calls 2

traverse_bfsMethod · 0.80
make_csrFunction · 0.70

Tested by

no test coverage detected