pub fn export_html(
graph: &KnowledgeGraph,
communities: &HashMap<usize, Vec<String>>,
community_labels: &HashMap<usize, String>,
output_dir: &Path,
max_nodes: Option<usize>,
) -> Result<PathBuf>Expand description
Export an interactive HTML visualization of the knowledge graph.
For large graphs (> max_nodes nodes), automatically prunes to the most
important nodes: highest-degree nodes plus community representatives.
Pass None for max_nodes to use the default of 2000.