Skip to content

BUG: allow graphs with nonstandard node labels in FISTA - #8332

Merged
MridulS merged 4 commits into
networkx:mainfrom
Peiffap:bug/fista-labels
Oct 26, 2025
Merged

MridulS merged 4 commits into
networkx:mainfrom
Peiffap:bug/fista-labels

Conversation

@Peiffap

@Peiffap Peiffap commented Oct 25, 2025 •

Copy link
Copy Markdown
Member

Closes #8271.
Supersedes #8328.

This PR fixes the erroneous assumption that graphs for the FISTA algorithm always have node labels 0 through n - 1. It also adds a regression test for two such cases.

@MridulS MridulS added this to the 3.6 milestone Oct 26, 2025
@MridulS
MridulS merged commit 1515862 into networkx:main Oct 26, 2025
@Peiffap
Peiffap deleted the bug/fista-labels branch October 26, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

BUG: nx.approximation.densest_subgraph with FISTA method errors for graphs with nonstandard node labels

3 participants