I am wondering what happens if you remove an object in the middle of a treemap. If the treemap would look something like this: [![enter image description here][1]][1] [1]: https://i.sstatic.net/mAUkN.png So what would happen if you remove the number 30? Because 27 and 34 will disconnect from the tree.