Compute partition maps recursively by construction of the cot representation.
Parameters
Name
Type
Description
Default
psi2tree
psiclone.psi2tree.Psi2tree
A computed Psi2tree object.
required
Returns
Name
Type
Description
constructions
dict[psiclone.cot.COT, list(int)]
A dictionary that maps COT tree object to a partition coloring that represents construction of the tree by definition. Each partition can be passed to draw_bitmap or draw_geometry via node_color argument.