(self, start_node=None, spc=0)
return str_buff
Returns a tree-formated string of the tree. This
      method is used by the __repr__ method of the tree

      :rtype: a string representing the tree
Returns a tree-formated string of the tree. This
      method is used by the __repr__ method of the tree
Returns a tree - formated string of the tree . This method is used by the __repr__ method of the tree
def getTraversalString(self, start_node=None, spc=0):
      """ Returns a tree-formated string of the tree. This
      method is used by the __repr__ method of the tree

      :rtype: a string representing the tree
      """
      str_buff = ""
      if start_node is None:
         start_node = self.getRoot()
         str_buff += "%s\n" % start_node
      spaces = spc + 2
      for child_node in start_node.getChilds():
         str_buff += "%s%s\n" % (" " * spaces, child_node)
         str_buff += self.getTraversalString(child_node, spaces)
      return str_buff
def getTraversalString ( self , start_node = None , spc = 0 ) : str_buff = "" if start_node is None : start_node = self . getRoot ( ) str_buff += "%s\n" % start_node spaces = spc + 2 for child_node in start_node . getChilds ( ) : str_buff += "%s%s\n" % ( " " * spaces , child_node ) str_buff += self . getTraversalString ( child_node , spaces ) return str_buff