What Data Structure to Use for a Family Tree

Building my Family Tree

Designing a Information Structure & the Tools available to create a tree

Bharath Raja

Basic family tree

Backstory

Sometime back when I was home talking to my grandma, she asked thou e to go to a relative'southward matrimony, because "I'thousand growing up to be a human being" and it'south becoming a responsibleness of me. I had no freaking inkling who the person was, who they're marrying or how they're even related to me. So, I asked her. At present what she said went something like this, "Remember my(grandma's) brother's brother-in-law? The one who stays in Chennai. His married woman'southward cousin is the 1 getting married". Okay, if yous're focused, yous could get the link out of that. But it merely raised more questions in me, how many siblings does my grandma have? How many does my peachy-grandfather have? and who are their sons and peachy-grandsons? Would they be around my age? In Bharat, families are very much continued to each other. That'south kinda how the system works, a chain of network. And so to start with, I asked my blood brother's help in trying to draw out a family nautical chart. Just for our personal reference. He took a pencil and paper and started off with my corking-granddaddy and he was progressing. But then it occurred to me that everyone, at least across my generation would demand this, considering when I'm older I'g unlikely to remember all my relatives. So I had to go on runway of these people for future reference considering of the bloodline. And I wanted to create a database of people, just my family, their current contact info, birthdays and such, and get in available to everyone in the huge tree. This would enable anybody to track/contact anybody hands.

The Idea

Earlier jumping into developing something, I thought of what exactly I wanted.

  • Admin admission, who can edit or create (invite simply)
  • Facebook integration, then it's easier for everyone
  • Information privacy — Public / Family's family unit/ Family / Private
  • Relationship and Person search (eg., bear witness all cousins)
  • Handling a deceased person
  • Optional timeline

Data Structure Design

But before diving deep into this extensive list of features, I wanted to design the database of how I was going to shop the family data. People suggested me to employ some graph DB (neo4j) and get it done with. Just I wanted an efficient personal solution. The diagram you saw above was not tangible, because the children are continued to, umm, to a relation. Then I thought of storing all the relations in every single person, this was a foolish thought because y'all tin form derivatives out of relations and thus the number of connections would be redundantly very huge.

An optimal structure for any family

Epic ending

After spending so much time on this, I took a break to see if there were any other implementation already available for me to use. Though I've already washed this job, I wanted a thorough check again. Sadly, I constitute GENI which does this extensively, and it had 100 Million families already. With a heavy heart, I signed up and I realized information technology had (almost) everything I wanted.

https://www.geni.com/family-tree

http://www.ancestry.com/

johnsoncloneffew.blogspot.com

Source: https://bigomega.medium.com/building-my-family-tree-ef0be1fba775

0 Response to "What Data Structure to Use for a Family Tree"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel