random_newick: Generate a random binary graph

random_newickR Documentation

Generate a random binary graph

Description

Generate a random binary graph

Usage

random_newick(n, start = "", end = "", outpop = NULL)

Arguments

n

The number of terminal nodes, or a vector of population labels.

start

Prefix.

end

Postfix.

outpop

Outgroup (if n is a vector of labels).

Value

Tree in newick format.

Examples

random_newick(5)
random_newick(c('a', 'b', 'c', 'd')) # toplogy random, but pop order fixed
random_newick(sample(c('a', 'b', 'c', 'd'))) # toplogy and pop order random

uqrmaie1/admixtools documentation built on Nov. 3, 2024, 12:56 a.m.