Table 2.
1 | Initialize to the empty IBD graph. |
2 | Randomly permute the individuals and label them {A1 … An} |
3 | Sample from Q[p4(A1A2)|x(A1A2)] and add the trajectory to . |
4 | For 2 < k ≤ n |
5 | Randomly permute individuals {A1 … Ak−1} and label them {B1 … Bk−1}. |
6 | For 1 ≤ i < k |
7 | Sample from , x(BiAk)] and add the trajectory to . |
8 | End for I |
9 | End for k |
10 | Return an IBD graph on n individuals, . |