Functions involving combinations of trees¶
Grafting¶
Splitting¶
-
pybs.combinations.functions.
split
(tree, truncate=False)[source]¶ Return the splittings of a tree as a linear combination.
The return value is a linear combination of tuples. The 0th element is the cutting, the 1st element is the subtree. Both elements are
UnorderedTree
, except if it is the empty tree.
Coproduct and Antipode¶
-
pybs.combinations.functions.
subtrees
(tree)[source]¶ Return the HCK coproduct.
This is function does the heavy lifting when composing B-series. The return value is a
LinearCombination
of 2 tuples. The 0th element in the tuples are the forests of cutting, while the 1st element is the subtree.