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 more graph generators #6859
Comments
Attachment: trac_6859.patch.gz |
comment:2
Would it be possible to add to the docstrings the definition of what these graphs should be ? Nathann |
comment:3
Sure. I'll add definitions. |
comment:4
I do not know if you are aware of it ( I was not until very recently ) but the docstrings are used to generate a very complete documentation accessible through there : http://www.sagemath.org/doc/reference/graphs.html This also means that you can use LaTeX in your description if you deem it necessary, and that the formula will be automatically translated into beautiful equations on this page ;-) Nathann |
comment:5
Well, I knew that you can use Latex in docstrings, but I tried not to use it since it is hard to read when introspecting. |
Attachment: trac_6859_definitions.patch.gz Adds definitions of graphs to docstrings |
comment:7
Very nice. I'm attaching a patch which optimizes some of the code to use more python things (like swapping), plus fixes a few typos. I think someone needs to review my patch. |
Attachment: trac-6859-optimize.patch.gz apply on top of previous patches |
comment:8
I obviously can't review the patch, but the swapping certainly looks better. Coding too long in java has made forget some of the nice python idioms. |
comment:9
Okay, positive review for your patch. You can review my changes (just make sure that you still get the same graphs). If you okay my changes, change this ticket to "positive review". |
comment:10
All the graphs except the n,k star graph worked still. However, it was just a one line fix to keep the v[0] = tmp_bit line inside the for loop (otherwise all the vertices become looped). I've uploaded a one line patch to fix it. |
Attachment: trac-6859-optimize-fix.patch.gz |
comment:11
ah, right. Okay, then, positive review. |
comment:12
The patch
|
use ASCII characters for quotation marks and long dashes |
Attachment: trac_6859-ascii-chars.patch.gz Attachment: trac_6859-formatting-issues.patch.gz proper formatting of lists |
comment:13
The patch
|
Reviewer: Jason Grout, Minh Van Nguyen |
comment:14
Merged patches in this order:
|
Author: Michael Yurko |
Merged: Sage 4.1.2.alpha3 |
Changed merged from Sage 4.1.2.alpha3 to Sage 4.1.2.alpha4 |
comment:15
There is no 4.1.2.alpha3. Sage 4.1.2.alpha3 was William Stein's release for working on making the notebook a standalone package. |
This patch add graph generators for the hyper star, (n,k)-star, n-star, and bubble sort graph.
Component: graph theory
Author: Michael Yurko
Reviewer: Jason Grout, Minh Van Nguyen
Merged: Sage 4.1.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/6859
The text was updated successfully, but these errors were encountered: