Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
cpdef int _flip_c(W, set positions, list extended_root_conf_indices, int i, side="both"): r""" Flip a facet.
INPUT:
- W -- a Coxeter group - positions -- the positions of the elements of the facet - extended_root_conf_indices -- also attached to the facet ? - i -- the position where to flip - side -- optional, can be 'positive', 'negative' or 'both' (default)
OUTPUT:
the new position j that has replaced i
EXAMPLES::
sage: from sage.combinat.subword_complex_c import _flip_c sage: W = ReflectionGroup(['A',2]) # optional - gap3 sage: w = W.from_reduced_word([1,2,1]) # optional - gap3 sage: SC = SubwordComplex([1,2,1,2,1], w) # optional - gap3 sage: F = SC([0, 1]) # optional - gap3 sage: _flip_c(W, set([0,1]), F._extended_root_configuration_indices(), 1) # optional - gap3 4 sage: _flip_c(W, set([0,1]), F._extended_root_configuration_indices(), 0) # optional - gap3 3
sage: W = CoxeterGroup(['A',2]) sage: w = W.from_reduced_word([1,2,1]) sage: SC = SubwordComplex([1,2,1,2,1], w) sage: F = SC([0, 1]) sage: _flip_c(W, set([0,1]), F._extended_root_configuration_indices(), 1) 4 sage: _flip_c(W, set([0,1]), F._extended_root_configuration_indices(), 0) 3 """ cdef int r, nr_ref, r_minus, j, k cdef list R
cpdef list _construct_facets_c(tuple Q, w, int n=-1, int pos=0, int l=-1): r""" Return the list of facets of the subword complex associated to the word `Q` and the element `w` in a Coxeter group `W`.
EXAMPLES::
sage: from sage.combinat.subword_complex_c import _construct_facets_c sage: W = CoxeterGroup(['A',2]) sage: w = W.from_reduced_word([1,2]) sage: _construct_facets_c((2,1), w) [] sage: _construct_facets_c((2,1,2), w) [[0]] sage: _construct_facets_c((2,1,2,1), w) [[0, 3]] sage: w = W.from_reduced_word([1,2,1]) sage: _construct_facets_c((1,2,1,2,1), w) [[0, 1], [0, 4], [1, 2], [2, 3], [3, 4]] """ cdef int s cdef list X, Y else:
else: else: |