NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.
简单来说NetworkX是一个Python的包,用来创建和处理复杂网络结构。
中文文档:https://www.osgeo.cn/networkx/install.html
英文文档:https://networkx.org/documentation/stable/tutorial.html
安装
pip3 install networkx
使用pip3安装networkx,结果显示如下。
Collecting networkx
Downloading https://files.pythonhosted.org/packages/f3/b7/c7f488101c0bb5e4178f3cde416004280fd40262433496830de8a8c21613/networkx-2.5.1-py3-none-any.whl (1.6MB)
|████████████████████████████████| 1.6MB 22kB/s
Requirement already satisfied: decorator<5,>=4.3 in /usr/local/lib/python3.7/site-packages (from n