Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gateway scores can mix positions inside a community with whole-network node IDs. A valid network can crash, and a larger network gets different hub rankings.
Example
In BCTPy 0.6.1,
gateway_coef_signraisesIndexErroron a complete six-node graph with communities[1,1,2,2,3,3]; the BCT reference returns 0.91 for each equivalent node. On the bundled 138-node fixture, the degree-weighted gateway total changes from 87.014085 to 89.614032, and the top-ten node order changes.Fix and checks
The patch restores the module axis and uses global neighbor indices. It matches a direct translation of BCT’s 2019-03-03 algorithm on the crash case, a weighted case, and the 138-node fixture. A four-node singleton-community control agrees before and after. Three focused regressions pass.
Pinned base: c28931c; fix commit: 120acb0. Reproduction and evidence are recorded at https://github.com/dnncha/cheerfulduck/blob/main/projects/research/content/findings-20260908.json (finding
bctpy-gateway-coefficient-indexing; evidence archive SHA-256 22b6b050d9f04dc96a2ae83d0bad8d4b500c6ae84cacb257188f91ee5e00f8e8).This is a software defect and a changed result on a package fixture. I have not established an affected paper, patient decision, or scientific conclusion. No matching report was found in the upstream issues and PRs checked on 27 September 2026. Prepared with AI assistance; not independently reviewed.