Forests¶
-
class
pybs.combinations.forests.
Forest
(arg=0)[source]¶ Objects of this class represent forests.
Forests are initialized by a list of trees. Furthermore, multiplication of two forests,
*
, is overloaded to give a new forest containing all the trees of the two original forests.-
multiplicities
()¶ Return list of values (multiplicities)
-
-
pybs.combinations.forests.
empty_tree
= Forest()¶ Shortand for the empty forest. It is also known as the “empty tree” and denoted \(\emptyset\) in writing.