-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Implementation of permutohedron intervals #12569
Comments
Attachment: trac_12569-permutohedron_intervals-sg.patch.gz Tested on Sage 4.8, combinat branch |
comment:2
Like in my previous post... this patch isn't in combinat branch... |
comment:3
Hello, could you please add documentation to the first function ? one indirect doctest would be fine, for example,
then the bot will be happy. F |
comment:4
But Sphinx, the documentation generator, will be disturbed if you don't put a
Florent |
This comment has been minimized.
This comment has been minimized.
comment:5
I have added the doc. patchbot, apply trac_12569-permutohedron_intervals-sg-v2.patch |
comment:6
New patch with minor changes, including one doctest for one of the raise exceptions. There remains to add a doctest for the other raise exception. |
comment:7
I have added the doctest |
comment:8
Helloooooooooooooo !! Same remark as in #12571 : could you add those new methods to the index ? Besides, wouldn't it be possible to also call "inverse" in the second Oh, yeah... Ad wouldn't it make sense to update Nathann |
comment:9
Here is a new patch. I have changed the behavior of inversions, also improving very slightly its speed. Let us see if this causes problems elsewhere. I do not think one can use .inverse in the second add_edge line I have added both methods to the index I have taken the opportunity to make a very light clean up (using pyflakes to remove a few unused import and unused variables) |
comment:10
Sorry, I meant "inversions" not "inverse".
really looks like a computation of inversions, doesn't it ? Nathann |
comment:11
No, it is a computation of 'not inversions' in fact. It seems that the change of the behaviour inversions triggers a few doc tests in the rest of sage.. Some in graphs stuff, see the bot report. |
Work Issues: doc tests |
comment:12
new patch, correcting some doctests. There remains other doctests failing. for the bot: apply trac_12569-permutohedron_intervals-sg-v2.patch |
This comment has been minimized.
This comment has been minimized.
Reviewer: Frédéric Chapoton |
Changed author from Samuele Giraudo to Samuele Giraudo, Frédéric Chapoton |
comment:13
Helloooooooooooooooo !!! I again spent a couple of minutes trying to check if there was anything wrong with the graph whose linear extensions you return, but modulo the fact that I am biologically unable to check if it is not "left" instead of "right" and which is the largest among 12 and 21, everything seems good Good to go ! Nathann |
Changed reviewer from Frédéric Chapoton to Frédéric Chapoton, Nathann Cohen |
Changed work issues from doc tests to none |
Merged: sage-5.10.beta1 |
We implement a new method in the class Permutation which enables to compute the permutations of intervals of the permutohedron.
Apply:
Component: combinatorics
Keywords: Permutations, Permutohedron
Author: Samuele Giraudo, Frédéric Chapoton
Reviewer: Frédéric Chapoton, Nathann Cohen
Merged: sage-5.10.beta1
Issue created by migration from https://trac.sagemath.org/ticket/12569
The text was updated successfully, but these errors were encountered: