Repository navigation
DOC: Add missing params to bfs_layout docstring. - #8086
Merged
Schefflera-Arboricola merged 3 commits intoJun 8, 2025
Merged
Conversation
Peiffap
approved these changes
Jun 2, 2025
Peiffap
left a comment
Member
There was a problem hiding this comment.
LGTM! Some suggestions below.
| The alignment of nodes within a layer, either `"vertical"` or | ||
| `"horizontal"` | ||
|
|
||
| scale : number (default: 1) |
Member
There was a problem hiding this comment.
Both are correct, but I think we use x=y in most places.
Suggested change
| scale : number (default: 1) | |
| scale : number (default=1) |
| start : node in `G` | ||
| Starting node for bfs | ||
|
|
||
| align : string (default='vertical') |
Member
There was a problem hiding this comment.
Very minor nit but this uses single quotes as string delimiters whereas the rest of the description uses double quotes.
dschult
approved these changes
Jun 2, 2025
Co-authored-by: Gilles Peiffer <[email protected]>
rossbar
commented
Jun 3, 2025
rossbar
left a comment
Contributor
Author
There was a problem hiding this comment.
I copied/pasted these directly from the multipartite_layout docstring - the only thing changed is the description of align - so adding more changes here will just increase inconsistency. Let's handle that separately!
Schefflera-Arboricola
approved these changes
Jun 7, 2025
amcandio
pushed a commit
to amcandio/networkx
that referenced
this pull request
Jul 20, 2025
* DOC: Add missing params to bfs_layout docstring. * Update networkx/drawing/layout.py Co-authored-by: Gilles Peiffer <[email protected]> --------- Co-authored-by: Gilles Peiffer <[email protected]> Co-authored-by: Aditi Juneja <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Another minor thing I noticed while working on an nx guide: the
bfs_layoutdocstring was missing a couple of parameters from the signature.