diff --git a/tree_like.py b/tree_like.py index 293f86b..9bf4ee5 100644 --- a/tree_like.py +++ b/tree_like.py @@ -205,23 +205,6 @@ def calcActualHeight(root): h += nd.edgelen return h -def getPostorder(nd, start = True): # how to travel across tree - global _postorder - if start: - _postorder = [] # start with an empty list - - - if nd.lchild: - getPostorder(nd.lchild, False) # recursive function to - _postorder.append(nd) - - if nd.rsib: - getPostorder(nd.rsib, False) - - - - return _postorder - def readnewick(tree): total_length = len(tree)