Skip to content

add missing seed to function called by connected_double_edge_swap#6231

Merged
jarrodmillman merged 1 commit intonetworkx:mainfrom
dschult:seed_swap
Nov 22, 2022
Merged

add missing seed to function called by connected_double_edge_swap#6231
jarrodmillman merged 1 commit intonetworkx:mainfrom
dschult:seed_swap

Conversation

@dschult
Copy link
Copy Markdown
Member

@dschult dschult commented Nov 22, 2022

Inside connected_double_edge_swap, one call to nx.utils.discrete_sequence does not give the seed as input which will mess up trying to make it deterministic by providing a seed.

This PR adds seed to that function call.

I haven't been able to make this into a test -- and I spotted it while going through the code... not due to a behavior I didn't expect.

Copy link
Copy Markdown
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @dschult !

@jarrodmillman jarrodmillman added this to the networkx-3.0 milestone Nov 22, 2022
@jarrodmillman jarrodmillman merged commit c51e518 into networkx:main Nov 22, 2022
@dschult dschult deleted the seed_swap branch November 25, 2022 15:19
MridulS pushed a commit to MridulS/networkx that referenced this pull request Feb 4, 2023
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants