Converts a tree given as parent vector format to an ancestor matrix

parentVector2ancMatrix(parents, n)

Arguments

parents

A integer vector. Parent vector format tree.

n

A single integer. The number of mutations.

Value

a logical matrix;TRUE and FALSE