This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Commit 4a79e21
committed
Add Graph Narrative Generator - autonomous natural-language graph reports
New interactive tool (docs/narrative.html) that analyzes any graph and generates
comprehensive written narratives covering:
- Structural overview (density, diameter, clustering, components)
- Key player analysis (degree, betweenness, PageRank, closeness centrality)
- Community detection via label propagation
- Vulnerability assessment (articulation points, bridges)
- Anomaly detection (z-score outliers)
- Model comparison (small-world coefficient)
- Growth forecasting (preferential attachment analysis)
- Actionable recommendations
Features:
- 5 narrative tones: Analyst, Storyteller, Detective, Advisor, Journalist
- 8 configurable analysis modules
- 3 depth levels (brief/standard/detailed)
- 8 graph presets including Karate Club and Small World
- Auto-Narrator mode: autonomous iterative discovery (triangles, assortativity)
- Force-directed Canvas visualization with community coloring
- Export to Markdown, HTML, JSON, or plain text
- Edge list and adjacency list input formats
Usage: Open docs/narrative.html, load a preset or enter edges, select tone and modules, click Generate.1 parent 8a59f92 commit 4a79e21
2 files changed
Lines changed: 631 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments