I'm analyzing a large graph (382 219 nodes, 15 038 083 edges) with 1 721 connected components. One of these components has 374 511 nodes and 15 014 839 edges. Since I don't have the resources (CPU & RAM) to analyze such a large graph I decided to remove the large connected component from the graph.
So far I managed to generate a graph for each connected component and make a list containing them all except the large one.
Now I'd like to generate a graph containing all these small components.