Got resolution working such that there are no leaf and parent combos. This means there is duplication at this point but screw it.