Closed xflouris closed 7 years ago
finished.
pll_{r,u}tree_export_newick
now accepts a callback for printing arbitrary data elements. If NULL is passed instead of a callback, the behaviour remains as before, i.e. only branch lengths are printed. newick-export is an example demonstrating the new functionality.
Add two additional parameters to the
pll_newick_export
function:node->data
field and passes them, along with the format string, toasprintf
.Also write some standard callbacks, e.g. for printing only branch lengths.