Log in

HCMC Journal

MAJW 2024-01-22 to 2024-01-26

to : Martin Holmes
Minutes: 120

On Monday and Tuesday had some brief discussions with DA on how to proceed with the relationship trees.

On Wednesday, wrote the first implementation of code to generate intermediate generations, in cases where we have grandparent/grandchild relations but no intermediate parents. Haven’t yet implemented tests for this, and the initial results look like they might be over-generating, but I’ll come back to it when other work allows.

On Thursday morning, took another look at the code and the results, and commented it out until I can write some clean and simple tests. But there’s still the problem of whether you generate one dummy parent for every collection of grandchildren, or one dummy parent for each child; either will be guaranteed to be wrong some of the time.

There’s also the issue of a grandparent/grandchild relation where the child has no parent, but the grandparent does have a child. Should we attach the grandchild to that existing parent, or generate a new dummy one? Again, guaranteed to be wrong some of the time whichever we pick.

All in all, I’m beginning to come around to these conclusions:

None of this has any direct bearing on the code to draw the actual trees; whatever collection of relationships we end up with, they need to be rendered into a tree anyway.