R/toposearch.R
swap_leaves.Rd
Modify a graph by swapping two leaf nodes
swap_leaves(graph, fix_outgroup = TRUE)
An admixture graph
Keep outgroup in place
A new admixture graph