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

Add @not_implemented_for("directed") to number_connected_components #7074

Merged

Conversation

eriknw
Copy link
Contributor

@eriknw eriknw commented Oct 31, 2023

Previously, it was relying on a call to connected_components to check the graph type, but this doesn't work well when dispatching to a backend. Also, fix an exception message.

Previously, it was relying on a call to `connected_components` to check
the graph type, but this doesn't work well when dispatching to a backend.
Also, fix an exception message.
@dschult dschult merged commit 0b471dd into networkx:main Oct 31, 2023
36 of 37 checks passed
@jarrodmillman jarrodmillman added this to the 3.3 milestone Oct 31, 2023
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
…s` (networkx#7074)

Previously, it was relying on a call to `connected_components` to check
the graph type, but this doesn't work well when dispatching to a backend.
Also, fix an exception message.
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