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

Method graph_pagerank

nodedb-client/src/native/client/dispatch.rs:116–130  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        personalization: Option<std::collections::HashMap<String, f64>>,
        damping: Option<f64>,
        max_iterations: Option<u32>,
    )

Source from the content-addressed store, hash-verified

114 }
115
116 async fn graph_pagerank(
117 &self,
118 collection: &str,
119 personalization: Option<std::collections::HashMap<String, f64>>,
120 damping: Option<f64>,
121 max_iterations: Option<u32>,
122 ) -> NodeDbResult<Vec<(String, f64)>> {
123 self.graph_pagerank_impl(
124 collection,
125 personalization.as_ref(),
126 damping,
127 max_iterations,
128 )
129 .await
130 }
131
132 async fn document_get(&self, collection: &str, id: &str) -> NodeDbResult<Option<Document>> {
133 self.document_get_impl(collection, id).await

Callers

nothing calls this directly

Calls 2

graph_pagerank_implMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected