calculateConnections function

Calculate connections for a pedigree dataset