Skip to content

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

Open
sauravbhattacharya001 wants to merge 1 commit intomasterfrom
refactor/extract-indexed-graph-helper
Open

refactor: extract IndexedGraph helper to deduplicate array-based algorithm setup#105
sauravbhattacharya001 wants to merge 1 commit intomasterfrom
refactor/extract-indexed-graph-helper

Conversation

@sauravbhattacharya001
Copy link
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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m visualization Graph visualization and UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant