找不到 networkx 模块

can not find networkx module

我正在尝试使用 networkxnetworkx.algorithms.community.quality 模块来使用 coverage() 但是当我执行

from networkx.algorithms.community.quality import coverage

显示

ImportError: No module named 'networkx.algorithms.community.quality'

我找到的字母,我的python只找到networkx.algorithms.community.kcliquenetworkx.algorithms.community.tests模块。没有 quality 模块。我的networkx版本是1.11,是最新的。

有人能给我线索吗?

1.11 上不存在该模块。我不知道它的功能是否存在于 1.11 的其他地方,或者该功能是否在 1.11 上不存在,但您不会在 networkx.algorithms.community.quality

中找到它