A mathematical approach to multiple genetic relationships