Only call get_all_subnodes/get_all_leaves once since it is expensive
Only call get_all_subnodes/get_all_leaves once since it is expensive

Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara,Ensembl/ensembl-compara