#8703: Combinatorial Rooted Ordered and Binary Trees
-----------------------------------------------------+----------------------
Reporter: hivert | Owner: hivert
Type: enhancement | Status:
needs_review
Priority: major | Milestone: sage-5.7
Component: combinatorics | Resolution:
Keywords: trees, Cernay2012 | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Florent Hivert, Frédéric Chapoton | Merged in:
Dependencies: #8702 | Stopgaps:
-----------------------------------------------------+----------------------
Comment (by hivert):
Replying to [comment:26 stumpc5]:
> Replying to [comment:25 hivert]:
>
> Two more things:
>
> - what about lazily importing the new trees as this should be done by
default?
All the combinatorial objects are currently imported (not lazily). So I'd
rather switching this once for all. Also there are some problems with lazy
import (see eg #10906).
> - an_example / some_examples do not exist, so how am I supposed to get
some binary tree to see what I can do with it?
For combinatorial sets the convention is element rather than example which
is
for categories. Anyway, if I had forgotten, {{{TestSuite}}} would had
complained.
{{{
sage: BinaryTrees().an_element()
.
sage: list(BinaryTrees().some_elements())
[., [., .],
...
[., [[[., .], [[., .], .]], .]]]
}}}
> btw: I would be okay with folding trac_8703-additional-feature-fh.patch
and
> removing Viviane's patch in order to keep the ticket organized and the
> patchbot happy.
I kept thing separated to ease the review, planning to fold everything at
the
end.
Florent
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8703#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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.