I do not think that you will find any software that will do this for you, but writing would not be so difficult. I would take one of the many open source gedcom parsers and add people to a graph database such as Neo4j . Once it is in Neo4j, it should be relatively easy to do your calculations on individuals.
source
share