-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
graph theory: degree sequence function #7564
Comments
comment:1
The patch |
Author: Minh Van Nguyen |
comment:2
I will ask for more, if it isn't too much trouble. Could there be a small wrapper to (the better one) called degree_sequence as well? I realize this is very low priority. If the graph theory tour ever gets back up, this would be ideal to put in it as well. |
comment:3
Replying to @kcrisman:
As I mentioned in my email to sage-devel, I'm unable to find a function or method in the graph theory module that computes the degree sequence of a given graph. So there is no function or method for wrapping, unless you can point me to such a method/function. On the other hand, are you suggesting that there be a method in the class
Nod. |
comment:4
Replying to @sagetrac-mvngu:
Yes, that is exactly what I meant - wrapping the examples you provide, as it were. I don't have time to do this, unfortunately, though it should be pretty easy. |
comment:5
The (new) patch |
comment:6
Could it be possible to define in the same patch functions outdegree_sequence and indegree_sequence for DiGraphs ? :-) |
based on Sage 4.3.alpha0 |
comment:7
Attachment: trac_7564-degree-sequences.patch.gz Replying to @nathanncohen:
Y-E-S, yes! :-) The patch
I use the method names |
comment:8
Excellent ! Approved :-) Thank you for contributing to the Graph Section !! :-) |
Reviewer: Karl-Dieter Crisman, Nathann Cohen |
Merged: sage-4.3.alpha1 |
comment:10
A patch written, reviewed and merged in 11 hours ? O_O God O_O |
The degree sequence of a graph is a basic property that is studied in an introductory course on graph theory. There should be examples explaining how to compute the degree sequence of a given graph.
Component: graph theory
Author: Minh Van Nguyen
Reviewer: Karl-Dieter Crisman, Nathann Cohen
Merged: sage-4.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7564
The text was updated successfully, but these errors were encountered: