mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
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:
1 parent
2e0ee4dac7
commit
a000ef04b1
1 file changed
+3
-1
@@ -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}");
|
||||
|
||||
Reference in new issue
Block a user