-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Automorphism group with labeled vertices #14319
Comments
This comment has been minimized.
This comment has been minimized.
comment:1
I hope the patchbot will like this one. I'm pretty sure that it will break 1000 doctests Nathann |
comment:2
What are the allowed labels/doman elements of the underlying permutation groups? |
comment:3
Well, it lookslike it can be anything that can be hashed. A Nathann |
Dependencies: #14291 |
comment:5
Various docstrings need fixing as they explicitly refer to integers, for example
|
comment:6
Where does this docstring come from ? |
comment:7
Its in |
comment:8
Just for the record, #10335 is where this should have been done in the first place Nathann |
comment:9
This being said, I have no idea what to do with this Nathann |
comment:10
Patch updated ! I did not touch Nathann |
comment:11
I would be in favor of having a |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:13
Done in this new patch ! Thank you for looking at Nathann |
comment:14
Rebased on top of #14250 which is in 5.9.beta1. Nathann |
comment:15
Apply trac_14319.patch, trac_14319_fix_fan_isomorphism.patch, trac_14319-from_list_to_domain.patch |
Attachment: trac_14319-from_list_to_domain.patch.gz |
comment:16
You forgot at least one corner case, if the automorphism group is trivial then still need to remember the domain:
|
Updated patch |
comment:17
Attachment: trac_14319_fix_fan_isomorphism.patch.gz Apply trac_14319.patch, trac_14319_fix_fan_isomorphism.patch, trac_14319-from_list_to_domain.patch, trac_14319-empty.patch |
comment:41
Nonono they are already sorted in the set output. The problem is that python compares int and string by address, which depends on memory layout. The best fix for the doctest would be to have string labels for the whole domain. |
comment:42
Oh. I thought that it would compare types. Okayokay, then ! Nathann |
comment:43
Fixed again !
Is that ok Volker ? I don't want Jeroen to yell at me again. Nor to send to sage-devel (without naming me) all my past mistakes... Nathann |
comment:44
Thats works but is fugly.. how about changing the simplicial complex to
|
Attachment: trac_14319-empty.patch.gz |
comment:45
Feels like it's cheating. Plus it's nice to test weird inputs too. But done. Nathann |
Merged: sage-5.10.beta2 |
comment:48
Replying to @nathanncohen:
Damned, I missed this. The list method is important! It gives the permutation in list notation, and I am using it in my class tomorrow! Ok, the meaning is a bit dubious when the domain is any set, but I guess the following semantic would make sense:
If you agree with the above, I'll create a new ticket. And ignore the warning in class tomorrow ... |
comment:49
Yoooooooooo !!
Looks like I added you to the Cc when I created the ticket, though. And Florent, too.
Yeah well, you may need it and everything but it isn't even defined properly.
DUBIOUS ? Come on, it has no meaning whatsoever. Other than what "domain" returns.
Why don't you just add some lines to the constructor of What would a Nathann |
comment:50
Replying to @nathanncohen:
Sure, I take the blame for not spotting this and suggesting something
Yes it does! When the domain is 1...n it gives you the permutation in
If there is something to be contested it's that self.domain() returns |
comment:51
Yoooooo !
I understand that this information is useful in this case, the scope of
Isn't that machine-dependent when domain is a set ?
No objection to that. What would be the problem of a Or you could also implement something in the constructor of Why the hell do we have both Nathann |
comment:52
I just ran into the .list() deprecation warning as well, and was a bit confused by p.domain() permuting the domain. nthiery: were you planning on opening a new ticket to have p.domain() just give back the parent's domain, and restoring the p.list()? I'm deciding whether to ignore the deprecation or to update my code. |
comment:53
Ohhhhhhhh... An unanswered question from 3 months ago Nathann |
comment:54
Jason : what would you want |
comment:55
My confusion is just about the naming of |
comment:56
Sorry---a more direct answer: it makes more sense to me if |
comment:57
Put another way: to me, it's confusing that |
comment:58
Oh. I see. Well, How are Nathann |
comment:59
I'm confused. What is the problem with renaming the current |
comment:60
I am only worried of what I saw in the code of Permutations : that there are assumptions made by some developpers which are not known by others, and that code will end up being broken because the assumptions are never checked. I just want to be sure that the code stays correct. Right now the list that is returned by Exactly like the labeling of a poset's vertices with integers is a linear extension : that is assumed nearly everywhere in poset code, and you will sweat for a while before finding it out. If this variable was named "linear_extension" there would be no problem, though. And changing the code of Well. What do you think ? Nathann |
Permutation groups used to support only 1...n elements, but that is not the case anymore. We can return automorphism groups that do not need to be relabeled, and that is GREAT
:-P
Apply
Depends on #14291
Depends on #14250
Depends on #14477
Depends on #14435
CC: @dimpase @nthiery @hivert
Component: graph theory
Author: Nathann Cohen
Reviewer: Volker Braun
Merged: sage-5.10.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14319
The text was updated successfully, but these errors were encountered: