Re: [sage-devel] Re: containment in a set different from containment in a set - help needed

2022-12-04 Thread Jan Groenewald
Hi On Mon, 5 Dec 2022 at 09:38, Nils Bruin wrote: > On Sunday, 4 December 2022 at 23:15:35 UTC-8 axio...@yahoo.de wrote: > >> I accidentally opened a new ticket https://trac.sagemath.org/ticket/34824, >> which is essentially ready for review. There is another problem, which I >> do not understa

Re: [sage-devel] Re: containment in a set different from containment in a set - help needed

2022-12-04 Thread Nils Bruin
On Sunday, 4 December 2022 at 23:15:35 UTC-8 axio...@yahoo.de wrote: > I accidentally opened a new ticket https://trac.sagemath.org/ticket/34824, > which is essentially ready for review. There is another problem, which I > do not understand, which may be dealt with in the same ticket, if it is

Re: [sage-devel] Re: containment in a set different from containment in a set - help needed

2022-12-04 Thread 'Martin R' via sage-devel
I accidentally opened a new ticket https://trac.sagemath.org/ticket/34824, which is essentially ready for review. There is another problem, which I do not understand, which may be dealt with in the same ticket, if it is easy: sage: P = ParkingFunctions(4) sage: B = P([1, 2, 3, 4, 5, 6]) sage:

Re: [sage-devel] Re: containment in a set different from containment in a set - help needed

2022-12-04 Thread Nils Bruin
It looks like just overriding `_hash_` should do the trick. It's a "cpdef" method so the code should be there to check if it's overridden on a descendant class instance. There will be a performance degradation, although it will be mild because the hash is cached. If that's a problem, you can cy

Re: [sage-devel] Re: containment in a set different from containment in a set - help needed

2022-12-04 Thread 'Martin R' via sage-devel
I actually don't see how to do this, because ParkingFunction inherits the implementation of _hash_ from ClonableArray, just the same as, for example DecoratedPermutation, where the problem does not occur. Any ideas? On Saturday, 3 December 2022 at 18:15:35 UTC+1 Nils Bruin wrote: > On Saturday

[sage-devel] Re: New algorithm for graph edge coloring

2022-12-04 Thread dmo...@deductivepress.ca
This is now trac ticket #34809 . On Tuesday, November 29, 2022 at 9:11:31 AM UTC-7 Matheus Maldonado wrote: > There are some other points I forgot to mention: > > Figuring out if the optimal edge coloring of a graph takes Delta or > Delta+1 colors is an NP