I'm using networkx.connected_components to have a list of subgraphs of my main graph, but all it returns is this :
<generator object connected_components at 0x000001AC12663820>
How can I have access to a list of the connected components? what should I add to the code below to do this? :
G = nx.Graph()
components= nx.connected_components(G)
separated_graphs = list(components)
print(separated_graphs)