pub fn export_json(db: &GraphDb) -> Result<String>
Serialize the full graph (nodes, edges, communities, metadata) to pretty-printed JSON.