change the other code in networkx/algorithms/components to return generators of components instead of lists of components, Add option to copy (or not) component subgraph data.