Repository navigation
DOC: Add examples to contracted_nodes. - #7856
Merged
Merged
Conversation
Adds a more extensive examples section to contracted_nodes to highlight behavior in a myriad of cases.
rossbar
force-pushed
the
document-contracted
branch
from
July 10, 2025 08:53
c41d312 to
9a000cb
Compare
rossbar
commented
Jul 10, 2025
rossbar
left a comment
Contributor
Author
There was a problem hiding this comment.
I went ahead and rebased this on main to make sure everything is up-to-date.
It turns out that there are now more features to document with #7902 having been merged. My preference would be to handle additional examples for that particular feature in a follow-up PR to this one: the diff here is already pretty unruly due to the added examples!
However, if folks prefer that I mash it all into here just LMK and I will work on it!
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.
Adds a more extensive examples section to contracted_nodes to highlight behavior in a myriad of cases:
"contraction"attribute, and any edges that result from the contraction (and their attributes). Includes explicit examples for both non-multigraphs and multigraphs.self_loopsand how self-loops in the original graph are handled by contractionCloses #7781
Closes #7660