If the double children share the same RIN and the double parents have matching RINs, then the persons exist only once in the database and have been linked twice. You just need to remove the redundant parent-child links.