Repository navigation
Commit 050fc6d
fix(analyze): keep networkx's own betweenness on networkx 3.4
networkx 3.4, which pyproject.toml still allows, rescales sampled
betweenness scores differently from 3.5 and later. The fast path follows
3.5, so on 3.4 a report could print a different bridge score: 0.108
instead of 0.107 on axum. On networkx before 3.5, _betweenness_centrality
now returns networkx's own result, so the report matches v8 on every
supported version, and the tests no longer skip the sampled cases there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5eac2f3)1 parent 21e4358 commit 050fc6d
2 files changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
485 | 490 | | |
486 | 491 | | |
487 | 492 | | |
| |||
490 | 495 | | |
491 | 496 | | |
492 | 497 | | |
493 | | - | |
| 498 | + | |
| 499 | + | |
494 | 500 | | |
| 501 | + | |
| 502 | + | |
495 | 503 | | |
496 | 504 | | |
497 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
908 | 907 | | |
909 | 908 | | |
910 | 909 | | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | 910 | | |
915 | 911 | | |
916 | 912 | | |
| |||
923 | 919 | | |
924 | 920 | | |
925 | 921 | | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
| 922 | + | |
| 923 | + | |
930 | 924 | | |
931 | | - | |
932 | | - | |
| 925 | + | |
933 | 926 | | |
934 | 927 | | |
935 | 928 | | |
| |||
0 commit comments