I fixed the issue with the notebook from earlier - it was retaining state because of how I was passing the function argument - this is now rectified.
I've also added more explanatory text, and gone through the process of combining the functions into a single function that can be called once for each tree to get all the disjoint subtrees.
I fixed the issue with the notebook from earlier - it was retaining state because of how I was passing the function argument - this is now rectified.
I've also added more explanatory text, and gone through the process of combining the functions into a single function that can be called once for each tree to get all the disjoint subtrees.