#18516: Posets: canonical_label() returns a poset from lattice
-------------------------------------+-------------------------------------
Reporter: jmantysalo | Owner:
Type: defect | Status: needs_info
Priority: major | Milestone: sage-6.8
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Jori Mäntysalo | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jmantysalo/posets__canonical_label___returns_a_poset_from_lattice|
c742ca4204a252d2ebebe4a2dd6d037469f019c4
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
> {{{
>
self.relabel(self.cover_relations_graph().canonical_label(certify=True)[1])
> }}}
>
> ? Then `relabel()` will take care of facade property, poset vs. lattice
-thing and so on.
Yep, that's the idea. Though you can avoid creating a copy of the graph
by:
1) computing the canonical label on _hasse_diagram
2) "relabel the canonical label" using the correspondance between
_hasse_diagram vertices and poset vertices
3) call relabel on the poset itself with the "relabelled" canonical label
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/18516#comment:11>
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.