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
added more examples on graphical degree sequence #5634
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.
Just a couple suggestions for more compact examples.
Thanks!
Would it help to have examples where the sequences are not graphical sequences? For example: >>> nx.is_valid_degree_sequence_havel_hakimi([1, 2, 2])
False |
Okay, sir. |
Yes, that is what I was thinking. I'm hoping that they would be very simple and short examples. |
Okay sir |
@Lukong123 just a gentle ping, let me know if you have the time to add the non graphical sequence examples in this PR. If not, no worries we can do a new PR with those examples :) |
Hello, please is it still open to to work on this. |
Yes! Please feel free to add more examples here. |
d02c832
to
9925b66
Compare
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.
IMO the addition of examples is an improvement - I'd vote to add/modify the examples in followup PRs!
FWIW I pushed up a few minor fixups (var-renaming, rm extra spaces) and rebased on main to get the CI updated without screwing up the diff. |
Thanks for the updates. >>> sequence[-1] += 1
>>> nx.is_multigraphical(sequence)
False |
@dschult Let's create a good first issue out of it :) |
Thanks @Lukong123! |
* example on is_digraphical * reformatted * example on psedographical * example on is valid degree sequence erdos gallai * example on is valid degree sequence havel hakimi * multigraph * adjuseted error on is_multigraph * siplified the code * Minor touchups. --------- Co-authored-by: Ross Barnowski <rossbar@caltech.edu>
* example on is_digraphical * reformatted * example on psedographical * example on is valid degree sequence erdos gallai * example on is valid degree sequence havel hakimi * multigraph * adjuseted error on is_multigraph * siplified the code * Minor touchups. --------- Co-authored-by: Ross Barnowski <rossbar@caltech.edu>
* example on is_digraphical * reformatted * example on psedographical * example on is valid degree sequence erdos gallai * example on is valid degree sequence havel hakimi * multigraph * adjuseted error on is_multigraph * siplified the code * Minor touchups. --------- Co-authored-by: Ross Barnowski <rossbar@caltech.edu>
No description provided.