AttributeError: module ‘networkx’ has no attribute “connected_component_subgraphs”
networkx library has deprecated connected_component_subgraphs.
you might be trying to get the connected component subgraphs, But you are getting the above error.
networkx has deprecated this method and suggested another way to solve the above problem.
networkx.algorithms.components.connected_component_subgraphs - NetworkX 2.1 documentation
I hope it will help you. please upvote.