#18511: LatticePoset: add has_sublattice()
-------------------------------------+-------------------------------------
Reporter: jmantysalo | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.8
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Jori Mäntysalo | Reviewers: Nathann Cohen, Darij
Report Upstream: N/A | Grinberg
Branch: | Work issues:
public/ticket/18511 | Commit:
Dependencies: | 0ef0050b3b959c2115dc9a433d80c62dda905f8f
| Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
> I guess that it is mostly an error from the user if he/she ask if
`{1,2}` is a sublattice of a lattice containing `a`, `b` and `a`. So
raising an exceptions sounds better.
That's an inconsistency between graphs and posets
{{{
sage: p = Poset()
sage: p.le(1,3)
...
ValueError: element (=1) not in poset
sage: g = Graph()
sage: g.has_edge(1,3)
False
}}}
Soooooo okay for an exception!
> But totally another thing is a list vs. a lattice as a parameter. They
feels two different things.
Well, a `Lattice` is an iterable container of vertices, isn't it? And you
just can't have a `.has_sublattice(X)` function that does not accept a
lattice as input `O_o`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/18511#comment:27>
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.