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

Function shortest_path_same_node

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

Source from the content-addressed store, hash-verified

419
420 #[test]
421 fn shortest_path_same_node() {
422 let csr = make_csr();
423 let path = csr
424 .shortest_path("a", "a", None, 5, DEFAULT_MAX_VISITED, None)
425 .unwrap();
426 assert_eq!(path, vec!["a"]);
427 }
428
429 #[test]
430 fn shortest_path_unreachable() {

Callers

nothing calls this directly

Calls 2

shortest_pathMethod · 0.80
make_csrFunction · 0.70

Tested by

no test coverage detected