-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Tadpole graph #6999
Add Tadpole graph #6999
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't hard to construct from the others, but it does seem to be referred to regularly in the literature and might be common enough to warrant inclusion. Some comments appear below.
Co-authored-by: Dan Schult <dschult@colgate.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a question as to whether we should allow a tadpole to have m=0 (no head to the tadpole). I'm +0 for allowing that. It differs from the treatment for lollipop_graph
where the head must contain at least 2 nodes (to be a complete graph). Here we have a cycle connected to the path, and a cycle can have a single node (with a self-loop) or no nodes.
I have a few suggestions below and otherwise think this is ready to merge.
Thanks!
Co-authored-by: Dan Schult <dschult@colgate.edu>
Co-authored-by: Dan Schult <dschult@colgate.edu>
Co-authored-by: Dan Schult <dschult@colgate.edu>
Co-authored-by: Dan Schult <dschult@colgate.edu>
I probably clicked a wrong button, because I cannot see my own reply, but here's my opinion; Using I also don't understand what's wrong with the CI |
Changed to throw an error when |
To fix CI, merge the upstream main with your branch.
The last line will try to apply your commits since you diverged from The last line can also be: I think the conflicts are also on another of your PRs. I have on my list to work through those conflicts. :} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks ready to me!
* Add Tadpole graph * style fix * doc update Co-authored-by: Dan Schult <dschult@colgate.edu> * Update classic.py * apply suggestions * style fix * Update networkx/generators/tests/test_classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/tests/test_classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * style fix * error on m<2 * style fix * simplify --------- Co-authored-by: Dan Schult <dschult@colgate.edu> Co-authored-by: Massimo Achterberg <maachterberg@tudelft.nl>
* Add Tadpole graph * style fix * doc update Co-authored-by: Dan Schult <dschult@colgate.edu> * Update classic.py * apply suggestions * style fix * Update networkx/generators/tests/test_classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/tests/test_classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * style fix * error on m<2 * style fix * simplify --------- Co-authored-by: Dan Schult <dschult@colgate.edu> Co-authored-by: Massimo Achterberg <maachterberg@tudelft.nl>
* Add Tadpole graph * style fix * doc update Co-authored-by: Dan Schult <dschult@colgate.edu> * Update classic.py * apply suggestions * style fix * Update networkx/generators/tests/test_classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * Update networkx/generators/tests/test_classic.py Co-authored-by: Dan Schult <dschult@colgate.edu> * style fix * error on m<2 * style fix * simplify --------- Co-authored-by: Dan Schult <dschult@colgate.edu> Co-authored-by: Massimo Achterberg <maachterberg@tudelft.nl>
Implements the Tadpole graph
Source: https://en.wikipedia.org/wiki/Tadpole_graph