Your comments

You are right, this is the approach that makes sense. Thank for such clear explanation!

Thanks! When you say it will only check top leve trees, what do you mean? It doesnt check all links independently of whether they are top or bottom?

Hi guys, so what is the way to detect and remove duplicates leaving just one? I am uncertain whether those script work well. I wouldn't like to remove valuable stuff or entire trees without duplicates.