Skip to content

Add edge_attrs="weight" to forceatlas2_layout dispatch decorator - #7918

Merged
rossbar merged 1 commit into
networkx:mainfrom
eriknw:fa2_edge_attrs
Mar 22, 2025
Merged

rossbar merged 1 commit into
networkx:mainfrom
eriknw:fa2_edge_attrs

Conversation

@eriknw

@eriknw eriknw commented Mar 21, 2025

Copy link
Copy Markdown
Contributor

This is a follow up to #7794 and #7915. The weight= parameter wasn't documented when @nx._dispatchable was added to FA2, so I/we completely missed its use. Anyway, this change makes sure the edge attribute is preserved if necessary when converting to a different backend.

Also, the default weight is None, not "weight".

CC @nv-rliu @rlratzel

@eriknw eriknw added this to the 3.5 milestone Mar 21, 2025
@eriknw eriknw added type: Bug fix Dispatching Related to dispatching and backend support labels Mar 21, 2025

@Schefflera-Arboricola Schefflera-Arboricola 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.

Thanks @eriknw !

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rossbar
rossbar merged commit 6457506 into networkx:main Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dispatching Related to dispatching and backend support type: Bug fix

Development

Successfully merging this pull request may close these issues.

3 participants