R/improveCore.R
anc2parentVector.Rd
Converts an ancestor matrix to a tree in parent vector format
anc2parentVector(anc, n)
a integer vector; parent vector format tree.
p = c(11, 2, 3, 14, 14, 16, 8, 6, 9, 1, 15, 8, 10, 14, 5, 13, 17)
anc <- parentVector2anc(parents=p,n = 16)
anc2parentVector(anc=anc,n=16)
#> [1] 11 2 3 14 14 16 8 6 9 1 15 8 10 14 5 13