Repository navigation
Bipartite layout nodes optional - #7756
Merged
Merged
Conversation
rossbar
force-pushed
the
bipartite-layout-nodes-optional
branch
from
December 4, 2024 21:56
78e2012 to
9196501
Compare
rossbar
force-pushed
the
bipartite-layout-nodes-optional
branch
from
January 24, 2025 05:05
9196501 to
8c5116a
Compare
Contributor
Author
|
Rebased on main to incorporate |
MridulS
reviewed
Feb 2, 2025
Comment on lines
+1651
to
+1654
| """ | ||
|
|
||
|
|
Member
There was a problem hiding this comment.
Wait what? Where is the actual function implementation?
Member
There was a problem hiding this comment.
also TIL:
def what_is_this():
"lol what"
This is perfectly valid python code.
rossbar
force-pushed
the
bipartite-layout-nodes-optional
branch
from
February 3, 2025 02:51
8c5116a to
1f70ffb
Compare
rossbar
force-pushed
the
bipartite-layout-nodes-optional
branch
from
February 3, 2025 02:53
1f70ffb to
79621a3
Compare
MridulS
reviewed
Feb 3, 2025
MridulS
approved these changes
Feb 5, 2025
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.
A feature proposal to make the
nodesparameter ofbipartite_layoutoptional, with the default behavior to compute the nodesets withnx.bipartite.sets.This is intended to be a minor convenience enhancement so users don't have to explicitly create partitions just to visualize the graph. This is only a proposal to add a feature and should be completely backwards compatible - including preserving the order of the nodes in the
posdict. I wasn't sure how important that was, but it's straightforward not to break!I also added a
draw_bipartiteconvenience function in 9196501 to match the pattern used for the other layout functions. I did so only for consistency and am completely happy to leave it out if preferred!