fix(ffi): graph_stats counts the contains and tagged edge kinds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-26 16:37:06 +01:00
1 parent 2e0ee4dac7
commit a000ef04b1
1 file changed
+3 -1
+3 -1
View File
@@ -15,7 +15,7 @@ fn main() -> anyhow::Result<()> {
let t = std::time::Instant::now(); let t = std::time::Instant::now();
g.graph_data()?; g.graph_data()?;
let cached = t.elapsed(); let cached = t.elapsed();
let mut by_kind = [0usize; 7]; let mut by_kind = [0usize; 9];
for &k in &d.kinds { for &k in &d.kinds {
by_kind[k as usize] += 1; by_kind[k as usize] += 1;
} }
@@ -34,6 +34,8 @@ fn main() -> anyhow::Result<()> {
"embed", "embed",
"mention", "mention",
"synapse", "synapse",
"contains",
"tagged",
]; ];
for (n, c) in names.iter().zip(by_kind) { for (n, c) in names.iter().zip(by_kind) {
println!(" {n:<10} {c}"); println!(" {n:<10} {c}");