Skip to content

Expire deprecation of link kwarg in node_link fns. - #8282

Merged
MridulS merged 1 commit into
networkx:mainfrom
rossbar:node-link-deprecations
Sep 26, 2025
Merged

MridulS merged 1 commit into
networkx:mainfrom
rossbar:node-link-deprecations

Conversation

@rossbar

@rossbar rossbar commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

... and the 2nd of 2 deprication expirations for 3.6 - see also #8281

This one's a little trickier as it involves removing a kwarg named link from node_link_graph and node_link_data, and replacing it with the more NetworkX-y edges. Note that most of the changes to the test suite involve removing a context manager that was ensuring a FutureWarning was being raised - the underlying tested code remains the same.

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me!
It's a trickier deprecation than usual. But the comments made at the time of deprecation nicely guide us to where the changes are needed. And the code itself is located in one module, so it's easier to track down "is there anywhere else" concerns. :)

@rossbar
rossbar force-pushed the node-link-deprecations branch from ebd7f3f to a6972be Compare September 19, 2025 18:39
@rossbar

rossbar commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Just rebased to fix the conftest/deprecation docs conflicts!

And the code itself is located in one module, so it's easier to track down "is there anywhere else" concerns. :)

Indeed there was one location where an issue would've squeaked in: the the interactive javascript viz gallery example. This gallery example is not actually executed (or at least not in a way that it renders) by default as it relies on setting up a local flask server. Fortunately a thorough grep of "node_link" caught it!

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.

3 participants