(self)
return all_nodes
Return a new list with all nodes

      :rtype: the list with all nodes
Return a new list with all nodes
Return a new list with all nodes
def getAllNodes(self):
      """ Return a new list with all nodes

      :rtype: the list with all nodes
      """
      node_stack = []
      all_nodes = []
      tmp = None

      node_stack.append(self.getRoot())
      while len(node_stack) > 0:
         tmp = node_stack.pop()
         all_nodes.append(tmp)
         childs = tmp.getChilds()
         node_stack.extend(childs)

      return all_nodes
def getAllNodes ( self ) : node_stack = [ ] all_nodes = [ ] tmp = None node_stack . append ( self . getRoot ( ) ) while len ( node_stack ) > 0 : tmp = node_stack . pop ( ) all_nodes . append ( tmp ) childs = tmp . getChilds ( ) node_stack . extend ( childs ) return all_nodes