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

refactor: extract IndexedGraph helper to deduplicate array-based algorithm setup - #105

Closed
sauravbhattacharya001 wants to merge 1 commit into
masterfrom
refactor/extract-indexed-graph-helper
Closed

sauravbhattacharya001 wants to merge 1 commit into
masterfrom
refactor/extract-indexed-graph-helper

Conversation

@sauravbhattacharya001

Copy link
Copy Markdown
Owner

Extracted duplicated vertex-index + adjacency-list building from computeBetweenness() and globalEfficiency() into a reusable IndexedGraph inner class. Pure refactoring, no behavioral changes.

…index + adjacency-list building

computeBetweenness() and globalEfficiency() both built identical
vertex-index maps and int[][] adjacency lists. Extracted this into
a reusable IndexedGraph inner class that can be shared across any
array-based graph algorithm.

Also exposes indexGraph() factory method for external callers that
need the compact representation for custom algorithms.
@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/m labels Mar 21, 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/m visualization Graph visualization and UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant