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
DegreeSequences class ! #11584
Comments
comment:2
Interesting. A long time ago I was hoping one could have Sage create more than one graph from a given degree sequence. Currently we just have H-H in one way:
It would be great to be able to return all graphs created by this, at least it seems that way to me... |
comment:3
I couldn't agree more, but I have no idea how for the moment Nathann |
comment:5
(rebased) |
comment:6
Attachment: trac_11584.patch.gz Hi Nathann, I tried the patch on sage-5.0.beta8.
However, I have some minor comments:
As soon as these minor comments are addressed, I think the patch will be ready to go. Best, D. |
Reviewer: David Coudert |
comment:7
What about this ? Nathann |
This comment has been minimized.
This comment has been minimized.
comment:8
Something goes freaky wrong with the extra patch: doctest crash, functionality crash...
I have no idea where the problem comes from :( |
comment:9
OOoops... Yep, it comes from the sage_free I added Nathann |
comment:10
The patch is OK (docbuild, install, long tests,...) and the message is much better now. Please change |
comment:11
Attachment: trac_11584-doc.patch.gz I do not stand these laptop keywords... Sorry 'bout that Nathann |
comment:12
For me the patch is now in good shape. |
comment:13
Thank you for reviewing it Nathann |
Merged: sage-5.0.beta11 |
This patch implements the
DegreeSequence
class which lets the user check whether a given integer sequence is indeed a degree sequence, and more importantly build the list of all degree sequences of length n.I originally wrote this code because I attempted to test a conjecture on "all graphs up to isomorphism", to notice later that there actually was a large number of them. There actually was a nice upper bound on what I wanted to measure which only depended on the degree sequence, and here I am.
While it is already hard to enumerate all the graphs on 10 elements, with this code I was able to enumerate the degree sequences on up to 23 vertices (it has been running on the case 24 for two days now)
:-D
I also spent a scary amount of time on the documentation, so as to explain how everything works. Let's make Sage's reference manual a math book
:-D
Nathann
APPLY:
CC: @nthiery @sagetrac-mvngu
Component: graph theory
Author: Nathann Cohen
Reviewer: David Coudert
Merged: sage-5.0.beta11
Issue created by migration from https://trac.sagemath.org/ticket/11584
The text was updated successfully, but these errors were encountered: