liamrevell / phytools

GNU General Public License v3.0
207 stars 56 forks source link

Meanings of the edge numbers? #62

Closed xie186 closed 4 years ago

xie186 commented 4 years ago

image

Work on a figure like the one shown above. Could you please tell me what does the edge number meaning? Or it's just numbers and don't mean anything? Thanks.

liamrevell commented 4 years ago

These numbers are node indices for the "phylo" object. There specific values are meaningless; except that (by convention) the values 1:N for N tips are assigned to external nodes, the values (N+1):(N+m) for m internal nodes are assigned to internal nodes, and the value N+1 is assigned to the global root.

xie186 commented 4 years ago

Thank you!