def get_reachable_nodes(node):
	"""
	returns a list with all the nodes from the tree with root *node*
	"""
	ret = []
	stack = [node]

	while len(stack) > 0:
		cur = stack.pop()
		ret.append(cur)
		for c in cur.get_children():
			stack.append(c)
	return ret