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

Method graph_shortest_path

nodedb-client/src/remote/client/dispatch.rs:130–140  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        from: &NodeId,
        to: &NodeId,
        max_depth: u8,
        edge_filter: Option<&EdgeFilter>,
    )

Source from the content-addressed store, hash-verified

128 }
129
130 async fn graph_shortest_path(
131 &self,
132 collection: &str,
133 from: &NodeId,
134 to: &NodeId,
135 max_depth: u8,
136 edge_filter: Option<&EdgeFilter>,
137 ) -> NodeDbResult<Option<Vec<NodeId>>> {
138 self.graph_shortest_path_impl(collection, from, to, max_depth, edge_filter)
139 .await
140 }
141
142 async fn document_get(&self, collection: &str, id: &str) -> NodeDbResult<Option<Document>> {
143 self.document_get_impl(collection, id).await

Calls 1