Skip to content

Replace random_lobster with random_lobster_graph - #8067

Merged
MridulS merged 1 commit into
networkx:mainfrom
Peiffap:rename-random_lobster
Jun 2, 2025
Merged

MridulS merged 1 commit into
networkx:mainfrom
Peiffap:rename-random_lobster

Conversation

@Peiffap

@Peiffap Peiffap commented May 26, 2025

Copy link
Copy Markdown
Member

This renames the random_lobster generator to use the _graph suffix: random_lobster_graph.

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

I think this makes sense on the basis of consistency. I just did a quick scan over the other generators and the vast majority (that actually create graphs) end in _graph (or _tree, etc.). I'm generally in favor of consistency and tend to be more aggressive about API tweaks... WDYT @MridulS ?!

@MridulS MridulS 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.

The consistency is good, but it's also creates churn and forces users to update the code where maybe it's not really required.

I would rather have us go through the old backlog of 200 PRs and review them 😅

@MridulS
MridulS merged commit c874f1e into networkx:main Jun 2, 2025
@Peiffap
Peiffap deleted the rename-random_lobster branch June 2, 2025 22:15
amcandio pushed a commit to amcandio/networkx that referenced this pull request Jul 20, 2025
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.

5 participants