On Fri Nov 11 19:12:13 2022 +0000, Esme Povirk wrote:
This is still including each individual link which seems redundant and potentially inconsistent. What I had in mind was an add_child function that would update the parent's last_child link, the parent's first_child link if necessary, the child's parent link, the child's previous_sibling link if necessary, and the previous sibling's next_sibling link.
Ah, yes that is a much better idea. So setting a provider as a child also sets the parent link for the children. Since we're only dealing with two children at most in this tree, we could also set siblings in that same function.