Converts a an ancestor matrix to tree in parent vector format

ancMatrixToParVector(anc, n)

Arguments

anc

A matrix. An ancestor matrix.

n

A single integer. The number of mutations.

Value

a integer vector; parent vector format tree.