Skip to content
Advertisement

Error for max(nx.connected_component_subgraphs(),) no attribute ‘connected_component_subgraphs’

I am trying to run this code:

JavaScript

But I am getting this error message:

JavaScript

How do I get around that?

Advertisement

Answer

connected_component_subgraphs() has been removed from version 2.4.

Instead, use this:

JavaScript

according to this answer.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement