Sample connections and form a tree

sample_connections(gen_sizes)

Arguments

gen_sizes

vector of generation sizes

Value

data frame with the following columns

gen

generation number

n_in_gen

number inside that generation

inf_id

infector ID

id

unique ID within cluster