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

Method push_node_f64

nodedb/src/engine/graph/algo/result.rs:71–75  ·  view source on GitHub ↗

Add a row with node_id and f64 score (PageRank, SSSP, LCC, centrality).

(&mut self, node_id: String, value: f64)

Source from the content-addressed store, hash-verified

69
70 /// Add a row with node_id and f64 score (PageRank, SSSP, LCC, centrality).
71 pub fn push_node_f64(&mut self, node_id: String, value: f64) {
72 self.text_columns[0].push(node_id);
73 self.f64_columns[0].push(value);
74 self.row_count += 1;
75 }
76
77 /// Add a row with node_id and i64 value (WCC component, community, triangles, coreness).
78 pub fn push_node_i64(&mut self, node_id: String, value: i64) {

Callers 9

runFunction · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80
result_to_jsonFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 2

result_to_jsonFunction · 0.64