* Lightweight (nodes, edges) count snapshot. Used around an index/sync * run to compute true additions across extraction + resolution + * synthesis — the per-phase counter in the orchestrator only sees * extraction's contribution, which is why the CLI summary under-reported * the edge co
()
| 1772 | * the edge count (resolution + synthesizer edges were invisible). |
| 1773 | */ |
| 1774 | getNodeAndEdgeCount(): { nodes: number; edges: number } { |
| 1775 | return this.db |
| 1776 | .prepare('SELECT (SELECT COUNT(*) FROM nodes) AS nodes, (SELECT COUNT(*) FROM edges) AS edges') |
| 1777 | .get() as { nodes: number; edges: number }; |
| 1778 | } |
| 1779 | |
| 1780 | /** |
| 1781 | * Get graph statistics |