例如:ModuleNotFoundError: No module named 'networkx.approximation'import networkx.algorithms.approximation as naa给出以下错误:
AttributeError: module 'networkx.algorithms.approxim
我尝试了以下几点:
from networkx.algorithms import approximationG = nx.barbell_graph(5, 1)
但这只会给我带来以下错误:
AttributeError: module 'networkx.algorithms.approximation' has no attribute