graphify icon indicating copy to clipboard operation
graphify copied to clipboard

god_nodes() ignores exclude_hubs_percentile — hub suppression only reaches cluster()

Open mattgdrums-cloud opened this issue 3 months ago • 1 comments

`exclude_hubs_percentile` (tested on 0.9.51) only affects `cluster()`'s community-resolution step. It never reaches `analyze.god_nodes()` — that function has no percentile/exclusion parameter at all, confirmed by reading the source directly.

Repro: running god-node ranking at every percentile value on a real ~14k-node repo graph returns identical output every time — utility hubs (e.g. a generic `main`/`Path`-style symbol) stay in the top ranking positions regardless of the setting.

Expected: `god_nodes()` should accept the same hub-exclusion parameter the clustering step already has, so a percentile that suppresses hubs in one place suppresses them in the other.

Happy to share the exact repro script if useful.

mattgdrums-cloud avatar Aug 30 '26 05:08 mattgdrums-cloud

This looks fixed on the v8 branch by 6f9b79ae (fix(analyze): god_nodes honours exclude_hubs_percentile (#3205)). Could a maintainer confirm and close?

omsenjalia avatar Oct 18 '26 08:10 omsenjalia