This function randomly generates an admixture graph for a given set of leaf nodes
random_admixturegraph(
leaves,
numadmix = 0,
simple = TRUE,
outpop = NULL,
nonzero_f4 = NULL,
admix_constraints = NULL,
event_order = NULL,
ntry = 100
)
Names of the leaf nodes, or a number specifying how many leaf nodes there should be
Number of admixture events
Should edges leading to admixture nodes consist of separate admix edges and normal edges
Outgroup population
rand_graph = random_admixturegraph(10, numadmix = 5)
plot_graph(rand_graph)