#18511: LatticePoset: add is_sublattice()
-------------------------------------+-------------------------------------
Reporter: jmantysalo | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-wishlist
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Jori Mäntysalo | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jmantysalo/latticeposet__add_is_sublattice__|
c3e1c19e4e7c8c1a666a755c96bb5a23ea921b1a
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
Yo,
> I would like to get some comments about this. 1) Should it be at all
possible to check if given ''list'' of elements form a sublattice of the
lattice? 2.1) If not, should I change the order of `self` and `other`? 2.2
If yes, should I change name from `is_sublattice()` to `has_sublattice()`?
(Compare to `is_subgraph()` on generic graphs.)
the way it is implemented, your function works for both. And I do not
personally mind if `is_sublattice` also works on lists.
On the other hand, with the current implementation the antichain on 5
elements is a sublattice of the chain on 5 elements.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/18511#comment:3>
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.
For more options, visit https://groups.google.com/d/optout.