Demo entry 6769800

abc

   

Submitted by anonymous on Nov 08, 2018 at 11:54
Language: Python. Code size: 189 Bytes.

def create_nodes_with_dfs(node):
	if not node.children:
		return
	for child in node.children:
		FlowNode.objects.create(parent=node, screen=child.screen)
		create_nodes_with_dfs(child)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).