百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

networkx

> 编程语言
开源

Python 中的网络分析

17.1K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Python 中的网络分析

NetworkX 是一个 Python 包,用于创建、操作和研究复杂网络的结构、动力学和功能。

  • 网站 (包括文档): https://networkx.org
  • 邮件列表: https://groups.google.com/forum/#!forum/networkx-discuss
  • 源代码: https://github.com/networkx/networkx
  • 错误报告: https://github.com/networkx/networkx/issues
  • 报告安全漏洞: https://tidelift.com/security
  • 教程: https://networkx.org/documentation/latest/tutorial.html
  • GitHub 讨论: https://github.com/networkx/networkx/discussions
  • Discord (Scientific Python) 邀请链接: https://discord.com/invite/vur45CbwMz
  • NetworkX 会议日程 (对所有人开放): https://scientific-python.org/calendars/networkx.ics

import networkx as nx >>> G = nx.Graph() >>> G.add_edge("A", "B", weight=4) >>> G.add_edge("B", "D", weight=2) >>> G.add_edge("A", "C", weight=3) >>> G.add_edge("C", "D", weight=4) >>> nx.shortest_path(G, "A", "D", weight="weight") ['A', 'B', 'D']

安装

安装最新发布的 NetworkX 版本:

.. code:: shell

Issues· 307 开放

查看全部 Issues在 GitHub 打开
  • #8934

    capacity_scaling 返回一个成本为零的不可行流,而不是引发 NetworkXUnfeasible

    更新于 2026年9月30日
  • #8930

    考虑从 mypy 迁移到 Pyrefly

    更新于 2026年9月26日
  • #3467

    功能请求: 在 structuralhole.py 中添加计算选定节点"层次结构"指标的功能

    type: EnhancementsNeeds PR更新于 2026年9月20日
  • #8471

    所需语义:带有自环的弦图

    Discussion更新于 2026年9月8日
  • #8829

    功能请求: 解决 `simrank_similarity` 中的零相似性问题

    type: Enhancements更新于 2026年8月20日
  • #8128

    ENH: `simple_cycles` 的 `min_length` 关键字参数

    type: Enhancements更新于 2026年7月25日
  • #8737

    simple_cycles 的指数级运行时间 (含 length_bound (_bounded_cycle_search))

    type: Bug fix更新于 2026年7月19日
  • #8030

    backends 和 not_implemented_for

    DiscussionDispatching更新于 2026年7月14日
  • #8575

    查看 NetworkX 中的阈值图工具

    Discussion更新于 2026年7月14日
  • #5246

    提高三角形的性能

    type: EnhancementsNeeds PR更新于 2026年5月24日

> 标签

Pythoncomplex-networksgraph-algorithmsgraph-analysisgraph-generation

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年10月1日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言