-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Generalized Petersen graph generator #7228
Comments
generator for generalized Petersen graphs |
comment:1
Attachment: trac_7228.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:2
This patch seems perfect to me ! I just modified the name of this graph so that it includes the values of n and k, and added some ` somewhere. If you agree with these, you can set this ticket to positive review ! |
comment:3
Attachment: trac_7228-reviewer.patch.gz Thanks for your review, I agree with all changes. I noticed however that my patch caused a test to fail in graph.py (a test that looks up the coordinates of all vertices of the Petersen Graph). The failure was trivial, the main reason was that I had placed the nodes at larger distance from (0,0) than before. I have fixed these position issues in this new patch, which should be applied on top of trac_7228-reviewer.patch |
Attachment: trac_7228-fix_positions.patch.gz fixes failure of position test |
comment:4
good point ! Positive review ! |
Author: Anders Jonsson |
Reviewer: Nathann Cohen |
Merged: sage-4.2.alpha1 |
This patch introduces a generator for the generalized Petersen graphs.
http://mathworld.wolfram.com/GeneralizedPetersenGraph.html
http://en.wikipedia.org/wiki/Petersen_graph#Generalized_Petersen_graphs
The method used for plotting gives exactly the same result as the Petersen, Desargues, and the Moebius-Kantor graphs, so these functions have been simplified to just call GeneralizedPetersenGraph() with suitable parameter values and then change the graph's name to the named graph in question.
Patch is made against sage 4.1.2
Component: graph theory
Author: Anders Jonsson
Reviewer: Nathann Cohen
Merged: sage-4.2.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7228
The text was updated successfully, but these errors were encountered: