[sage-combinat-devel] necklaces

2014-12-02 Thread Mike Zabrocki
I was double checking a problem from my combinatorics class (we are doing PĆ³lya enumeration) and I came across what I think is a bug in the necklaces.py code. I'll open a ticket, but I want to double check in case someone knows more about this code than I do. sage: Necklaces([0,2,1]).list()

[sage-combinat-devel] Re: necklaces

2014-12-02 Thread Travis Scrimshaw
Hey Mike, We had the problem for Lyndon words (http://trac.sagemath.org/ticket/12997), but it was hacked around. So either we fix _sfc/_simple_fixed_content or we hack around it by stripping leading 0's and then modifying the yielded elements (by adding # leading 0's). Best, Travis On

[sage-combinat-devel] Re: necklaces

2014-12-02 Thread Mike Zabrocki
That is really good to know. It seems that the code isn't handling input vectors with leading 0's. -Mike -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to