As a note, with subsets, the behavior of rank is stable under permutations :
sage: S = Subsets([0,1,2],2) sage: S.unrank(1) {0, 2} sage: S.rank([0,2]) 1 sage: S.rank([2,0]) 1 2011/2/10 Rob Beezer <nicolas.thi...@u-psud.fr>: > Is the last line a bug, or should the input required to be sorted and > an error raised? Or am I missing something? The help for rank/unrank > is not very complete. > > sage: C = Combinations([0,1,2], 2) > sage: C.unrank(1) > [0, 2] > sage: C.rank([0,2]) > 1 > sage: C.rank([2,0]) > 0 > > -- > To post to this group, send an email to sage-de...@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > > -- > You received this message because you are subscribed to the Google Groups > "sage-combinat-devel" group. > To post to this group, send email to sage-combinat-devel@googlegroups.com. > To unsubscribe from this group, send email to > sage-combinat-devel+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sage-combinat-devel?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.