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

Function make_csr

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

Source from the content-addressed store, hash-verified

347 use super::*;
348
349 fn make_csr() -> CsrIndex {
350 let mut csr = CsrIndex::new();
351 csr.add_edge("a", "KNOWS", "b").unwrap();
352 csr.add_edge("b", "KNOWS", "c").unwrap();
353 csr.add_edge("c", "KNOWS", "d").unwrap();
354 csr.add_edge("a", "WORKS", "e").unwrap();
355 csr
356 }
357
358 #[test]
359 fn bfs_traversal() {

Callers 10

bfs_traversalFunction · 0.70
bfs_all_labelsFunction · 0.70
bfs_with_depthFunction · 0.70
shortest_path_directFunction · 0.70
shortest_path_same_nodeFunction · 0.70
subgraph_materializationFunction · 0.70

Calls 1

add_edgeMethod · 0.80

Tested by 10

bfs_traversalFunction · 0.56
bfs_all_labelsFunction · 0.56
bfs_with_depthFunction · 0.56
shortest_path_directFunction · 0.56
shortest_path_same_nodeFunction · 0.56
subgraph_materializationFunction · 0.56