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