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

fix: Addressing a deprecated assumption from NetworkX "links" data #47

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sdelliot
Copy link
Collaborator

The "link" keyword is deprecated for the node_link_data function and will be removed in version NetworkX v3.6. We are switching to the recommended default "edges" instead.

See node-link-data for more details.

@mitchnegus
Copy link
Member

mitchnegus commented Jan 27, 2025

It appears that this change was introduced in NetworkX 3.4 which drops support for Python versions less than 3.10. We support 3.8 and 3.9, so it looks to me like this will break any installations using those versions.

Otherwise, it's 👍🏼 . There are some references to those same values in the tests that I updated, and so the tests now pass for versions that comply with the NetworkX version restrictions.

Short of abandoning our support of Python 3.8 and 3.9, maybe we hold this PR until we transition from those?

@sdelliot
Copy link
Collaborator Author

Excellent point! NetworkX follows: https://scientific-python.org/specs/spec-0000/. I agree that we should hold off on this until we drop support for Python 3.9.

@sdelliot sdelliot added the Python 3.10 Changes that need to wait for 3.10 to be the minimum supported version. label Jan 27, 2025
@sdelliot sdelliot marked this pull request as draft January 27, 2025 18:50
@sdelliot sdelliot added the fix Something isn't working label Feb 5, 2025
@sdelliot sdelliot changed the title Addressing a deprecated assumption from NetworkX "links" data. S… fix: Addressing a deprecated assumption from NetworkX "links" data Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Something isn't working Python 3.10 Changes that need to wait for 3.10 to be the minimum supported version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants