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

Function wcc_result_to_record_batch

nodedb/src/engine/graph/algo/result.rs:250–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248
249 #[test]
250 fn wcc_result_to_record_batch() {
251 let mut batch = AlgoResultBatch::new(GraphAlgorithm::Wcc);
252 batch.push_node_i64("n1".into(), 0);
253 batch.push_node_i64("n2".into(), 0);
254 batch.push_node_i64("n3".into(), 1);
255
256 let rb = batch.to_record_batch().unwrap();
257 assert_eq!(rb.num_rows(), 3);
258 assert_eq!(rb.schema().field(1).name(), "component_id");
259 }
260
261 #[test]
262 fn louvain_result_three_columns() {

Callers

nothing calls this directly

Calls 2

push_node_i64Method · 0.80
to_record_batchMethod · 0.80

Tested by

no test coverage detected