Thank you for your answers !! (though NONE of them was forwarded to
sage-devel :-P)
I just needed a gray code over all subsets of 0,...,n-1 myself, so
sympy's totally works. And I even found a short one on the web [1]. But if
somebody wants to implement some Sage-specific thing, then count
Hi!
On Thu, Dec 05, 2013 at 08:20:34AM +0100, Vincent Delecroix wrote:
> As there would be a lot of Gray code, it makes sense to have a
> dedicated sage/combinat/gray_codes/.
The combinatorics code is currently organized by type of objects
(everything about partitions, about permutations,
Hi,
As there would be a lot of Gray code, it makes sense to have a
dedicated sage/combinat/gray_codes/. I would be happy to see Gray
codes as I do have one project related to it [1]. Sympy gray codes are
implemented in pure Python and only concern subsets. It would be nice
in Sage to not use GrayC
You can just hook up the sympy code or use that directly:
http://docs.sympy.org/dev/modules/combinatorics/graycode.html
On 12/05/2013 05:52 AM, Nathann Cohen wrote:
Helloo everybody !
I got an email from a Sage user who wants to enumerate something, and
I'd need to generate a Gray Code in