pub fn save(graph: &CodeGraph, path: &Path) -> Result<()>
Save a CodeGraph to a file, creating parent directories if needed.