TheGeneGenieProject / GeneGenie.Gedcom

A .Net library for loading, saving, working with and analysing family trees stored in the GEDCOM format.
GNU Affero General Public License v3.0
52 stars 22 forks source link

How to find all ancestors from a person? #101

Closed MrBean2016 closed 3 years ago

MrBean2016 commented 3 years ago

I am trying to figure out how to find all ancestors/descendants from a person with this library? Can this be done with this library or do I need to build the tree first or even load inte to Neo4j ?

Thanks,

warthenr commented 3 years ago

There isn't a direct way to do this, but you can loop over each child or parent and work your way up or down.

MrBean2016 commented 3 years ago

ok, thanks, I will do some experiments.