Calculate mean kinship

Has anyone calculated mean kinship in a pedigree using cypher?
If you have, would you care to share the steps and queries you used!
I have a standard pedigree, with founders, consisting of approximately 500 nodes and 1000 relations.