pub fn export_graph_json(source: &str) -> Result<String, JsValue>
Export the graph structure as JSON for visualization/GraphQL consumption.