Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

refactor: extract CommunityPanelController and MSTPanelController from Main.java - #98

Closed
sauravbhattacharya001 wants to merge 1 commit into
masterfrom
refactor/extract-community-mst-controllers
Closed

sauravbhattacharya001 wants to merge 1 commit into
masterfrom
refactor/extract-community-mst-controllers

Conversation

@sauravbhattacharya001

Copy link
Copy Markdown
Owner

Summary

Extracts ~280 lines of community detection and MST panel logic from Main.java into dedicated controller classes, continuing the decomposition pattern established by ArticulationPanelController, ResiliencePanelController, and EgoPanelController.

New classes

  • CommunityPanelController — owns community detection UI, Louvain analysis lifecycle, overlay state, colour palette, and result formatting
  • MSTPanelController — owns MST panel UI, Kruskal computation lifecycle, overlay state, and component breakdown display

Impact

  • Main.java reduced from 1498 → 1216 lines (19% reduction)
  • No behavioral changes — identical UI and analysis logic, just relocated
  • Follows existing controller pattern (constructor injection of graph supplier + overlay callback)

Addresses #86

…m Main.java

Extract ~280 lines of community detection and MST panel logic from Main.java
into dedicated controller classes, following the same pattern already used by
ArticulationPanelController, ResiliencePanelController, and EgoPanelController.

- CommunityPanelController: owns community detection UI, Louvain analysis
  lifecycle, overlay state, colour palette, and result formatting
- MSTPanelController: owns MST panel UI, Kruskal computation lifecycle,
  overlay state, and component breakdown display
- Main.java reduced from 1498 to 1216 lines

Addresses #86 (god class decomposition)
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added visualization Graph visualization and UI size/xl labels Mar 20, 2026
@sauravbhattacharya001

Copy link
Copy Markdown
Owner Author

Closing: superseded or conflicting with newer changes already on main/master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size/xl visualization Graph visualization and UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant