#11010: Implementation of the SubwordComplex as defined by Knutson and Miller
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner: tbd
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.10
Component: combinatorics | Resolution:
Keywords: subword complex, | Merged in:
simplicial complex | Reviewers:
Authors: Christian Stump | Work issues:
Report Upstream: N/A | Commit:
Branch: u/chapoton/11010 | 8b79780943df18379d9e16ce016abf83662ca261
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by tscrim):
Replying to [comment:64 chapoton]:
> I am not quite satisfied with the custom naive type A/B recognition in
the plot method. Travis, is there a better way ? or even a way to have the
correct type printed in the repr ?
You can use the (relatively recent) Coxeter matrices and types:
{{{
sage: W = CoxeterGroup(['C',4])
sage: T = W.coxeter_matrix().coxeter_type(); T
Coxeter type of ['C', 4]
}}}
The current implementation for Coxeter types essentially wraps the Cartan
types, so there is a "different" type for B and C. (This was done because
there was a lot of information that could be pulled from the Cartan type,
as there is a lot of hard-coded data, and I didn't want to have to try and
decide on a naming scheme. I fully take the blame for the hacks involved.)
However, the information you're after is inside the wrapped type:
{{{
sage: T.cartan_type()
['B', 4]
sage: T.cartan_type().type()
'B'
sage: T.cartan_type().rank()
4
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/11010#comment:65>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.