Just for fun: sage: Permutation([3,2,1]).inversions() # 0-based [(1, 2), (1, 3), (2, 3)] sage: Permutation([3,2,1]).bruhat_inversions() # 0-based [[0, 1], [1, 2]]
This code is a joke. Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.