Follow parentOf from startId until it has no parent, repeats an id, or
stopAt accepts one. parentOf returns null/undefined for "no parent"
(a root, an unreadable link and a non-placement all end the walk the same
way; a caller that must tell them apart checks the last id itself).
Follow
parentOffromstartIduntil it has no parent, repeats an id, orstopAtaccepts one.parentOfreturnsnull/undefinedfor "no parent" (a root, an unreadable link and a non-placement all end the walk the same way; a caller that must tell them apart checks the last id itself).