pub async fn visualize(
graph_db: &dyn GraphDBTrait,
output_path: Option<&Path>,
) -> Result<PathBuf, VisualizationError>Expand description
Generate an interactive HTML knowledge-graph visualization of the supplied graph database.
graph_db— graph database from which all nodes + edges are fetched viaget_graph_data().output_path— optional destination path. WhenNone, the file is written to~/graph_visualization.html(or%USERPROFILE%on Windows), matching Python’svisualize_graph().
Returns the absolute path the file was written to.