Half way - Generate all the possible combinations of all the nodes