def new_node(ntype, data, comment, parents, children, routine): new = node(ntype=ntype, data=data, comment=comment, parents=parents, children=children, routine=routine) view.print_subtree(new.get_roots())
def transact(self): if self.cl_args['l']: view.print_subtree(self.roots()) if self.cl_args['n']: self.node(ntype=self.cl_args['<type>'], ndata=self.cl_args['<data>'], ncomment=self.cl_args['<comment>'], nparents=(self.cl_args['parent'],))
def transact(self): if self.cl_args['l']: view.print_subtree(self.roots()) if self.cl_args['n']: self.node(ntype=self.cl_args['<type>'], ndata=self.cl_args['<data>'], ncomment=self.cl_args['<comment>'], nparents=(self.cl_args['parent'], ))
def view_node(name): n = node(name=util.str_to_int(name)) roots = n.get_roots() view.print_subtree(roots)