Converts a tree given as lists of children to the Newick tree format

getNewickCode(list, root)

Arguments

list

A list. the list of children of tree.

root

A single integer. The number of mutations.

Value

the string of newick format tree.