# NOT RUN {
# Full siblings
kap = c(0.25, 0.5, 0.25)
x = constructPedigree(kap)
# Validation
kap2 = kappaIBD(x, leaves(x))
stopifnot(all.equal(kap, kap2))
# For kappa = (0,1,0), the result is not a parent-child relationship,
# but half siblings whose shared parent is completely inbred.
y = constructPedigree(kappa = c(0,1,0))
plot(y)
# }
Run the code above in your browser using DataLab