Add a function that allows for automatic coarse-graining of a structured tree
Add a function that allows for automatic coarse-graining of a structured tree