generate_topology_array
topology = generate_topology_array(topology, node->children[i], count);
generate_topology_array(topology, node, nodesLeft);