Modify a graph by applying n mutation functions

mutate_n(
  graph,
  n = 2,
  funs = list(spr_all, spr_leaves, swap_leaves, move_admixedge_once, flipadmix_random,
    mutate_n),
  fix_outgroup = TRUE
)

Arguments

graph

An admixture graph

n

Number of functions to apply

funs

List of function from which to choose

fix_outgroup

Keep outgroup in place

Value

A new admixture graph