4 ms·
Love how simple this is! It would be great if there you were able to add siblings without having a parent added first. And being able to add a child with only o
by library-frog 7mo ago
Love how simple this is! It would be great if there you were able to add siblings without having a parent added first. And being able to add a child with only one parent present as well--there's an error that states the parent needs a spouse before adding a child.
- familytreeeasy 7mo agoThanks! You’re right that adding siblings without a parent is tricky from a data-structure perspective—they need a common parent or family node to define the relationship. To solve this without breaking the tree structure, I’m planning to support "single-parent" nodes. This will allow you to create an empty or placeholder parent to group siblings together without needing a spouse. This should give you the flexibility you’re looking for while keeping the underlying hierarchy intact. Thanks for helping me refine these edge cases!