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

Function louvain_single_node

nodedb/src/engine/graph/algo/louvain.rs:291–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289
290 #[test]
291 fn louvain_single_node() {
292 let mut csr = CsrIndex::new();
293 csr.add_node("solo").unwrap();
294 csr.compact().expect("no governor, cannot fail");
295 let batch = run(&csr, &AlgoParams::default());
296 assert_eq!(batch.len(), 1);
297 }
298}

Callers

nothing calls this directly

Calls 4

runFunction · 0.70
add_nodeMethod · 0.45
expectMethod · 0.45
compactMethod · 0.45

Tested by

no test coverage detected