Skip to content

Update simple_paths.py to improve readability of the BFS.#6273

Merged
MridulS merged 4 commits intonetworkx:mainfrom
SultanOrazbayev:patch-simple-paths-readability
Dec 12, 2022
Merged

Update simple_paths.py to improve readability of the BFS.#6273
MridulS merged 4 commits intonetworkx:mainfrom
SultanOrazbayev:patch-simple-paths-readability

Conversation

@SultanOrazbayev
Copy link
Copy Markdown
Contributor

Improve readability of the BFS.

Resolves #3912.

Improve readability of the BFS.
@SultanOrazbayev SultanOrazbayev changed the title Update simple_paths.py Update simple_paths.py to improve readability of the BFS. Dec 10, 2022
remove `value` kwarg.
@SultanOrazbayev SultanOrazbayev marked this pull request as ready for review December 10, 2022 06:25
SultanOrazbayev and others added 2 commits December 10, 2022 22:07
Co-authored-by: Dan Schult <dschult@colgate.edu>
@SultanOrazbayev
Copy link
Copy Markdown
Contributor Author

Agree with the change, I hesitated with proposing it initially, but agree that it's more readable that way.

Copy link
Copy Markdown
Member

@dschult dschult left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

Copy link
Copy Markdown
Member

@MridulS MridulS left a comment

Choose a reason for hiding this comment

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

@MridulS MridulS merged commit 75be68f into networkx:main Dec 12, 2022
@jarrodmillman jarrodmillman added this to the networkx-3.0 milestone Dec 13, 2022
MridulS pushed a commit to MridulS/networkx that referenced this pull request Feb 4, 2023
)

* Update simple_paths.py

Improve readability of the BFS.

* Update simple_paths.py

remove `value` kwarg.

* Update networkx/algorithms/simple_paths.py

Co-authored-by: Dan Schult <dschult@colgate.edu>

* Update simple_paths.py

Co-authored-by: Dan Schult <dschult@colgate.edu>
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
)

* Update simple_paths.py

Improve readability of the BFS.

* Update simple_paths.py

remove `value` kwarg.

* Update networkx/algorithms/simple_paths.py

Co-authored-by: Dan Schult <dschult@colgate.edu>

* Update simple_paths.py

Co-authored-by: Dan Schult <dschult@colgate.edu>
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.

Lack of library-wide ordered set hurts readability of algorithms

4 participants