def dump(self, indent=0): """ \brief Dump the current node \param indent current indentation """ Node.dump(self, indent) self.get_child().dump(indent + 1)
def dump(self, indent = 0): """ \brief Dump the current node \param indent current indentation """ Node.dump(self, indent) for child in self.children: child.dump(indent + 1)
def dump(self, indent=0): """ \brief Dump the current node \param indent current indentation """ if isinstance(self.left, list): return "%s\n%s [DATA] %s\n%s" % (Node.dump( self, indent), self.tab(indent), self.left_map.values(), self.right.dump(indent + 1)) else: return "%s\n%s\n%s" % ( Node.dump(self, indent), self.left.dump(indent + 1), self.right.dump(indent + 1), )
def dump(self, indent=0): """ \brief Dump the current node \param indent current indentation """ return "%s\n%s" % ( Node.dump(self, indent), self.child.dump(indent + 1), )
def dump(self, indent=0): """ \brief Dump the current node \param indent current indentation """ s = [] s.append(Node.dump(self, indent)) for child in self.children: s.append(child.dump(indent + 1)) return '\n'.join(s)