Commit f3e36ad
feat: louvain community detection for module boundary analysis (#133)
Add `codegraph communities` command that runs Louvain clustering on the
dependency graph, compares discovered communities against directory
structure, and surfaces architectural drift (split/merge candidates,
drift score). Supports file-level (default) and function-level modes,
configurable resolution, and drift-only output. Integrated into stats,
MCP, and programmatic API.
Impact: 9 functions changed, 8 affected
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 1c60b88 commit f3e36ad
9 files changed
Lines changed: 741 additions & 6 deletions
File tree
- src
- tests
- integration
- unit
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
745 | 766 | | |
746 | 767 | | |
747 | 768 | | |
| |||
0 commit comments