Skip to content

Change maximal_independent_set to return set instead of list - #8564

Merged
MridulS merged 1 commit into
networkx:mainfrom
pnijhara:fix-mis-tests
Mar 14, 2026
Merged

MridulS merged 1 commit into
networkx:mainfrom
pnijhara:fix-mis-tests

Conversation

@pnijhara

Copy link
Copy Markdown
Contributor

Summary

All tests pass, including:

  • test_mis.py (7 tests)
  • Coloring module tests (17 tests) - uses internal _maximal_independent_set, unaffected

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @pnijhara

An important element for this one will be the release note, which is automatically generated from the PR title + label. I think the type: API label is appropriate as this is a breaking change, and IMO the PR title is nice and descriptive. Just an added element for reviewers to consider!

@MridulS
MridulS merged commit a094c92 into networkx:main Mar 14, 2026
38 of 39 checks passed
@dschult dschult added this to the 3.7 milestone Mar 14, 2026
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.

maximal_independent_set returns a list

4 participants