mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 13:43:47 +08:00
update (#4961)
This commit is contained in:
@ -317,10 +317,11 @@ class Tree(Nodes.Chain):
|
||||
else:
|
||||
return None
|
||||
else:
|
||||
list = []
|
||||
for succ in self.chain[node_id].succ:
|
||||
list.extend(self.get_taxa(succ))
|
||||
return list
|
||||
return [
|
||||
node
|
||||
for succ in self.chain[node_id].succ
|
||||
for node in self.get_taxa(succ)
|
||||
]
|
||||
|
||||
def get_terminals(self):
|
||||
"""Return a list of all terminal nodes."""
|
||||
|
Reference in New Issue
Block a user