Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate the Newick string representation of a tree
ResourceFunction["ExportNewickString"][gr] generates the Newick string representation of the tree Graph gr. |
Generate the Newick string of a simple tree:
In[1]:= |
Out[1]= |
Because Newick strings use parentheses and commas to represent structure, vertex names whose string representation contains these characters are modified:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License