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
Odd Girth #8952
Comments
comment:2
What needs work here exactly? There's no patch on this ticket. |
comment:3
Well, nothing actually. I used to use the Trac server as my todo-list, a loooong time ago, so you will find many such tickets in this section I am (desperately) looking for a flat in Paris right now, but I should stop sinking and start swimming in a couple of weeks. I hope that all is well on you side !! Nathann |
comment:4
Haha, OK :) I found this ticket because someone asked about it on IRC and wants to work on it. Good luck with your flat! |
Attachment: trac_8952_odd_girth.patch.gz Patch performing the ticket request |
comment:5
Hello! Attached is the patch that should perform the required task. odd_girth() computes the odd girth of a graph using a property of the characteristic polynomial of the adjacency matrix. Its (theoretic) computational complexity is optimal. |
comment:6
Azi, I took a quick look and it looks promising, especially since characteristic polynomials are quite fast in Sage. I can look closer when I have a bit more time. For now, documentation needs some work. For example:
needs a double colon after the lead-in sentence (all 3 of your verbatim blocks need this). And your line creating the complete graph needs a Current documentation style needs "INPUT" and "OUTPUT" blocks - look around for examples. They will be pretty simple in this case. You can catch some of these yourself:
will rebuild the documentation and you can view the html file for mess-ups with the doc string. And
will find broken tests. Rob |
Second patch implementing the requested comments |
comment:8
Attachment: trac_8952_odd_girth_second.patch.gz I have added a patch (hopefully valid) with the commends you requested. There is still one missing warning in building the documentation (Literal block expected; none found." is likely an indentiation problem and/or a problem with a double-colon) which I was not able to spot. |
comment:10
Dear Azi, Your "literal block expected" error is caused by a double-colon after "EXAMPLES". It should be a single, just to be typeset as-is. A double-colon says verbatim (literal) stuff comes next. The patch looks severely messed-up to me. ;-( I am not all sure how you got it to that state, but I think I can fix it. Are you using clones or Mercurial queues? Queues are much easier to deal with, and easier for iterative changes like this. Don't try to fix the double-colon until I fix the patch (maybe later today). Rob |
comment:11
The patch was produced using the following guide http://www.sagemath.org/doc/developer/walk_through.html#creating-a-change |
comment:12
Replying to @sagetrac-azi:
Well, I sort of hope not, since I wrote that guide. ;-) It looks like something wasn't done quite right. Guide discusses two approaches: clones and queues. I cannot even begin to help if I don't know which approach you are taking. Let me know. Rob |
This comment has been minimized.
This comment has been minimized.
comment:14
"consolidated" patch has previous work in one (proper) patch - still has azi's name on it, too. See new "Apply" section in ticket description. Azi -
You can use "hg qnew " to initiate a new project with no interference from previous one. You can easily manage several activities with qpop/qpush, and "hg qpush --move" will allow applying patches out of order. "hg qapplied", "hg qunapplied" are informative. Hope this is helpful. Rob |
This comment has been minimized.
This comment has been minimized.
comment:15
(same patch with the max 80 characters per line that Minh taught me to respect in the Graph files, some links between odd_girth and girth, and some modifications in the doc so that Sphinx gets what it should) |
This comment has been minimized.
This comment has been minimized.
comment:21
(just updated the patch so that is_odd_hole_free uses this function too !!!) |
comment:22
Attachment: trac_8952_odd_girth-bugfix.patch.gz The patch looks good to me. Am I allowed to change the status of the ticket to reflect that? |
comment:23
Well I guess you can if you think the patch is ready Nathann |
comment:24
Ahem. Does everybody here agree that this patch should be merged ? Nathann |
comment:25
Looks good to me! |
comment:26
Ok, fine then... Could you set it to positive_review ? I'm the last one who added something to the ticket Nathann |
comment:27
Okayyyyyyyyyyyyyyyyyy.................. Nathann |
comment:28
I am sorry. I completely overlooked the "set it to positive_review" part. |
comment:29
No problem. Could you add your name to the list of reviewers/authors ? And if possible to the list in "http://trac.sagemath.org/sage_trac/wiki" too Nathann |
comment:30
OK. I have added myself to the wiki link. But I can't find the list of reviewers/authors. Do you happen to know where do I find that? |
comment:31
Ahahaah. It's on this page, on the "Modify Ticket" section. When a ticket is positively reviewed, the list of authors and reviewers has to be filled. I often forget that myself Nathann |
Reviewer: Jernej Azarija |
Author: Jernej Azarija |
comment:33
Oooh ok! I suppose you will add yourself to the list right? |
Changed reviewer from Jernej Azarija to Nathann Cohen, Jernej Azarija |
Changed author from Jernej Azarija to Jernej Azarija, Nathann Cohen |
Changed author from Jernej Azarija, Nathann Cohen to Jernej Azarija |
comment:35
Well, I'm not really an author of this ticket, and Rob did some of it too Nathann |
Changed reviewer from Nathann Cohen, Jernej Azarija to Rob Beezer, Nathann Cohen, Jernej Azarija |
comment:36
If azi is the only author, then he cannot be a reviewer... |
Changed reviewer from Rob Beezer, Nathann Cohen, Jernej Azarija to Rob Beezer, Nathann Cohen |
comment:37
AHahah. If that's the law, then... Nathann |
Attachment: trac_8952_odd_girth_consolidated.patch.gz |
comment:38
Rebased to sage-5.5.rc0. |
Merged: sage-5.6.beta0 |
Add a function to compute odd girth of a graph G.
Apply:
CC: @rbeezer
Component: graph theory
Author: Jernej Azarija
Reviewer: Rob Beezer, Nathann Cohen
Merged: sage-5.6.beta0
Issue created by migration from https://trac.sagemath.org/ticket/8952
The text was updated successfully, but these errors were encountered: