#14127: class for rook boards (Young shapes, diagram of a permutation)
------------------------------------------------------------------------------------+
Reporter: ahmorales
| Owner: ahmorales
Type: enhancement
| Status: new
Priority: trivial
| Milestone: sage-5.9
Component: combinatorics
| Resolution:
Keywords: days45, rook placement, Rothe diagram, Young diagram, Le
diagram | Work issues:
Report Upstream: N/A
| Reviewers: chrisjamesberg
Authors: ahmorales
| Merged in:
Dependencies:
| Stopgaps:
------------------------------------------------------------------------------------+
Comment (by jhpalmieri):
You should make sure to provide an interface to
`simplicial_complexes.ChessboardComplex(r,s)`: your `Board` class could
have a `simplicial_complex` method (or something similar) which returns
the complex. Actually, you could do this:
{{{
#!python
def _simplicial_(self):
"""
Return simplicial complex version of ...
"""
from sage.homology.examples import simplicial_complexes
return simplicial_complexes.ChessboardComplex(self.r, self.s) #
or whatever
simplicial_complex = _simplicial_
}}}
The point behind having a `_simplicial_` method is that if `B` is an
instance of the `Board` class, you can then call `SimplicialComplex(B)`
and it will call this method.
You also might be able to improve the implementation of the
`ChessboardComplex` or the `matching` function in the same file, and that
would be greatly appreciated.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14127#comment:1>
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 http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.