for node_id in [x for x in list(id_trie) if len(x) == 10 and not is_exit_node(x)]: