Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use

sage: W = WeylGroup("B2", prefix="s")                                           
sage: w=W.an_element()                                                          
sage: w.to_permutation()                                                        
(2, -1)

And relabel the poset using this map.

You can use

sage: W = WeylGroup("B2", prefix="s")                                           
sage: w=W.an_element()                                                          
sage: w.to_permutation()                                                        
(2, -1)

And relabel the poset using this map.

EDIT

sage: def new_label(w): 
....:     return ''.join(str(u) for u in w.to_permutation()).replace('-','0')   
sage: W.bruhat_poset().relabel(new_label)                                       
Finite poset containing 8 elements