This requires two new functions that are applied to an InnerTree:
- Sample recombination events that occur at a constant rate over time, conditional on the presence of two or more lineages that co-exist within the same Host. (The rate is therefore multiplied by the number of co-existing pairs.) This results in an ancestral recombination graph (ARG).
- Assign breakpoint locations for recombination events and resolve the ARG into a sequence of trees.
This requires two new functions that are applied to an InnerTree: