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

Function shortest_path_direct

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

Source from the content-addressed store, hash-verified

410
411 #[test]
412 fn shortest_path_direct() {
413 let csr = make_csr();
414 let path = csr
415 .shortest_path("a", "c", Some("KNOWS"), 5, DEFAULT_MAX_VISITED, None)
416 .unwrap();
417 assert_eq!(path, vec!["a", "b", "c"]);
418 }
419
420 #[test]
421 fn shortest_path_same_node() {

Callers

nothing calls this directly

Calls 2

shortest_pathMethod · 0.80
make_csrFunction · 0.70

Tested by

no test coverage detected