cognee-visualization-0.1.0-rc.1 has been yanked.
Cognee Visualization
Interactive HTML knowledge-graph visualization for Cognee-Rust.
This crate ports the Python cognee_network_visualization module. It reads all
nodes and edges from any GraphDBTrait implementation and renders them into a
single self-contained HTML file that uses d3.js v7 for force-directed layout and
Canvas rendering.
Usage
use GraphDBTrait;
use visualize;
use Path;
async
API
visualize(graph_db, output_path) -> PathBuf— render and write the HTML file. Whenoutput_pathisNone, writes to~/graph_visualization.html(%USERPROFILE%on Windows). Returns the path written.render(graph_db) -> String— render the HTML string without writing it (useful for streaming over HTTP or embedding in a larger page).render_multi_user(pairs) -> String— aggregate multiple(user_label, Arc<dyn GraphDBTrait>)pairs into one HTML document. Nodes are deduplicated by stringified id (first-write-wins) and tagged with asource_userattribute so the d3 template can color-code by user. Mirrors Python'saggregate_multi_user_graphs().
Errors are surfaced via VisualizationError.