Dear colleagues,
I am doing some work on community detection in network (I use networkx) and would like to explore connection to the phylogenetic trees (…it might be a bad idea, since I have really no clue about the phylogenetic trees, but would like to play around with it anyway).
I have just discovered dendropy and the newick format.
My question is the following
Is there an easy way to create a tree in newick for an edge list or an adjeceny matrix
For example for the example from Wikipedia
https://en.wikipedia.org/wiki/Newick_format
one would give a list (with all leaf named)
x1 = [(F,A), (F,B), (F,E), (E,C), (E,D)]
and get
newick format as in (A,B,(C,D)E)F;
P.S: I apologize in advance I am missing something pretty obvious