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

Function bfs_traversal

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

Source from the content-addressed store, hash-verified

357
358 #[test]
359 fn bfs_traversal() {
360 let csr = make_csr();
361 let mut result = csr.traverse_bfs(
362 &["a"],
363 Some("KNOWS"),
364 Direction::Out,
365 2,
366 DEFAULT_MAX_VISITED,
367 None,
368 );
369 result.sort();
370 assert_eq!(result, vec!["a", "b", "c"]);
371 }
372
373 #[test]
374 fn bfs_all_labels() {

Callers

nothing calls this directly

Calls 2

traverse_bfsMethod · 0.80
make_csrFunction · 0.70

Tested by

no test coverage detected