Simplify the branches in this tree by removing all identical path entries.
The length of the shortest path will be indicative of the similarity search depth.
If this tree only contains a single branch, the branch wil be simplified to its last index.
Grasshopper (in Grasshopper.dll)
public void SimplifyPaths()