**networkx函数查找网站:
https://networkx.github.io/documentation/latest/**
networkx函数提取网络最大连通子图
Gc = max(nx.connected_component_subgraphs(G), key=len)
**
基于模块度的社区发现功能:
**
import community
part = community.best_partition(G)
print (part)
mod = community.modularity(part,G)
print (mod)