I have the graph G. I want to display its largest weakly connected component as a separate graph and get the its number of edges and nodes.
I think the weakly_connected_component_subgraphs (Doc) function can solve my problem. But deprecated in NetworkX 2.1. what is the alternative of this function in NetworkX 2.4?