Skip to contents

Performs a Migration death move (Ewing et al. 2004). Selects an ancestral node uniformly at random and removes the parent of the selected node, allocating demes as necessary for modified edges.

Usage

migration_death(ED, n_deme, fix_leaf_deme = TRUE, node_indices)

Arguments

ED

Extended data object; matrix with columns Node ID, parent, child 1, child 2, deme, node age

n_deme

Number of distinct demes in the population

Value

Updated extended data object with the proposal from the migration death move