From a000ef04b1bcb37e60a4f2aa5d33432accbc4f4e Mon Sep 17 00:00:00 2001 From: Dasemu Date: Mon, 26 Oct 2026 16:37:06 +0100 Subject: [PATCH] fix(ffi): graph_stats counts the contains and tagged edge kinds Co-Authored-By: Claude Opus 5.5 --- crates/synapse-ffi/examples/graph_stats.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/synapse-ffi/examples/graph_stats.rs b/crates/synapse-ffi/examples/graph_stats.rs index 3da9ac0..95d5376 100644 --- a/crates/synapse-ffi/examples/graph_stats.rs +++ b/crates/synapse-ffi/examples/graph_stats.rs @@ -15,7 +15,7 @@ fn main() -> anyhow::Result<()> { let t = std::time::Instant::now(); g.graph_data()?; let cached = t.elapsed(); - let mut by_kind = [0usize; 7]; + let mut by_kind = [0usize; 9]; for &k in &d.kinds { by_kind[k as usize] += 1; } @@ -34,6 +34,8 @@ fn main() -> anyhow::Result<()> { "embed", "mention", "synapse", + "contains", + "tagged", ]; for (n, c) in names.iter().zip(by_kind) { println!(" {n:<10} {c}");