Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve LCA input validation #5877

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

rossbar
Copy link
Contributor

@rossbar rossbar commented Jul 17, 2022

Some minor fixups I noticed while reviewing #5876:

  1. The if None in G checks are not necessary as it is not possible to add None as a node to the base graph classes (as of Raise ValueError if None is added as a node. #4892)
  2. Some of the raising branches used elif instead of if.

@dschult dschult merged commit 8b6c25e into networkx:main Jul 20, 2022
@jarrodmillman jarrodmillman added this to the networkx-2.8.6 milestone Aug 18, 2022
jarrodmillman pushed a commit that referenced this pull request Aug 21, 2022
* Remove explicit checks for None nodes.

The graph objects already do not allow None nodes.

* Change elif to if for raising branches.
MridulS pushed a commit to MridulS/networkx that referenced this pull request Feb 4, 2023
* Remove explicit checks for None nodes.

The graph objects already do not allow None nodes.

* Change elif to if for raising branches.
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
* Remove explicit checks for None nodes.

The graph objects already do not allow None nodes.

* Change elif to if for raising branches.
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.

None yet

3 participants