#17053: Add function for direct sum of posets
---------------------------------+-----------------------------
Reporter: jmantysalo | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-wishlist
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------+-----------------------------
Comment (by ncohen):
Hello !
We already have a `Graph.disjoint_union` that accepts this kind of
parameter. If you want to have a similar feature at `Poset` level I
suggest that you only expose this function. The code would just be :
{{{
return Poset(self.hasse_diagram().disjoint_union(other.hasse_diagram()))
}}}
Then, if you want to have more ways to tune the result through the points'
name, the best would be to change the Graph function itself, which would
consequently give the same feature to the Poset function.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/17053#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.