convert new nx.components generator to list