pub fn smart_summary(
graph: &KnowledgeGraph,
communities: &HashMap<usize, Vec<String>>,
level: SummaryLevel,
token_budget: usize,
) -> StringExpand description
Generate a multi-level graph summary within a token budget.
Detailed: Equivalent tosubgraph_to_texton the full graph.Community: One representative node per community (highest degree) + cross-community edges.Architecture: Groups nodes by directory into super-nodes, merges edges.