1 | initial version |
I am not sure about your exact question, but you might start with:
sage: x = Permutation([2,1,4,3])
sage: y = Permutation([3,2,1,4])
sage: x.cycle_tuples()
[(1, 2), (3, 4)]
sage: y.cycle_tuples()
[(1, 3), (2,), (4,)]
Regarding Kazhdan-Lusztig polynomial for Weyl groups, you can have a look at :