Skip to main content

visualize

Function visualize 

Source
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 via get_graph_data().
  • output_path — optional destination path. When None, the file is written to ~/graph_visualization.html (or %USERPROFILE% on Windows), matching Python’s visualize_graph().

Returns the absolute path the file was written to.