TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

NetworkX – Network Analysis in Python

187 点作者 comradesmith超过 1 年前

18 条评论

wslh超过 1 年前
I recommend to complement with the recent Reddit thread in &#x2F;r&#x2F;Python [1].<p>[1] &quot;What are the best libraries to work with graphs?&quot; <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Python&#x2F;comments&#x2F;185xexg&#x2F;what_are_the_best_libraries_to_work_with_graphs&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Python&#x2F;comments&#x2F;185xexg&#x2F;what_are_th...</a>
jonathaneunice超过 1 年前
Been a few years since I put NetworkX through its paces, but the several times I have tried it, found remarkably weak support for graph layout and display. NetworkX analytic routines may be strong, but attractively displaying graph-structured problems remarkably more interactive and attractive via d3.js, GraphViz, etc. At least for my problems, communicating graph structures, and having nodes and edges that represent different kinds of things…these are basic requirements, not optional frills.
评论 #38579122 未加载
评论 #38578942 未加载
评论 #38579834 未加载
评论 #38599668 未加载
评论 #38579286 未加载
评论 #38578940 未加载
评论 #38582405 未加载
评论 #38582019 未加载
评论 #38580722 未加载
vlad_ungureanu超过 1 年前
I found the documentation for networkx much better than the one from igraph[1] (at least the Python version). However, for community detection algorithms graph-tool[2] is better (it also uses a different class of models than the standard in literature)<p>[1] <a href="https:&#x2F;&#x2F;igraph.org" rel="nofollow noreferrer">https:&#x2F;&#x2F;igraph.org</a> [2] <a href="https:&#x2F;&#x2F;graph-tool.skewed.de" rel="nofollow noreferrer">https:&#x2F;&#x2F;graph-tool.skewed.de</a>
liotier超过 1 年前
NetworkX let me whip up a useful shortest path routing proof of concept from telco data in a few hours. I was impressed with myself, but all glory goes to NetworkX !
dang超过 1 年前
Related:<p><i>NetworkX 3.0 - create, manipulate, and study complex networks in Python</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34321135">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34321135</a> - Jan 2023 (55 comments)
okasaki超过 1 年前
If you need more speed (but less features), check out networkit - <a href="https:&#x2F;&#x2F;networkit.github.io&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;networkit.github.io&#x2F;</a>
评论 #38582220 未加载
zubiaur超过 1 年前
Love it. Using it for load balancing of substation transformers. The grid is a graph.
评论 #38579166 未加载
评论 #38579487 未加载
评论 #38579040 未加载
rekoil超过 1 年前
NetworkX has helped me with so many Advent of Code questions. Some where it was warranted, some where I made it work anyway because I like it!
codetrotter超过 1 年前
See also <a href="https:&#x2F;&#x2F;github.com&#x2F;Qiskit&#x2F;rustworkx">https:&#x2F;&#x2F;github.com&#x2F;Qiskit&#x2F;rustworkx</a> – a general purpose graph library for Python written in Rust to take advantage of the performance and safety that Rust provides.<p>&gt; Rustworkx was originally called retworkx and was created initially to be a replacement for qiskit&#x27;s previous (and current) NetworkX usage (hence the original name). The project was originally started to build a faster directed graph to use as the underlying data structure for the DAG at the center of qiskit-terra&#x27;s transpiler. However, since it&#x27;s initial introduction the project has grown substantially and now covers all applications that need to work with graphs which includes Qiskit.
评论 #38582330 未加载
BerislavLopac超过 1 年前
NetworkX&#x27;s documentation is the source of one of the most surreal but true sentences ever written (with just a slight alteration) [0]:<p><pre><code> A lobster is a tree that reduces to a caterpillar when pruning all leaves. </code></pre> [0] <a href="https:&#x2F;&#x2F;networkx.org&#x2F;documentation&#x2F;latest&#x2F;reference&#x2F;generated&#x2F;networkx.generators.random_graphs.random_lobster.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;networkx.org&#x2F;documentation&#x2F;latest&#x2F;reference&#x2F;generate...</a>
rpigab超过 1 年前
I&#x27;ve used recently the networkx algorithm to find Hamiltonian cycles in a graph, in order to generate a Secret Santa with constraints (couples don&#x27;t send gifts to each other, and people don&#x27;t give to the same person as last year), it works great even though the problem is NP-complete, since my number of participants is very low.<p>I&#x27;ve tried the same in Rust with petgraph which resembles networkx, but it doesn&#x27;t have the algorithm for Hamiltonian built in and I couldn&#x27;t wrap my head around the DFS&#x2F;BFS visitor pattern, but I&#x27;ll continue this some day.
评论 #38581765 未加载
Der_Einzige超过 1 年前
Igraph and cugraph, and graph tool are far superior for a wide variety of reasons
评论 #38578742 未加载
评论 #38579424 未加载
评论 #38578805 未加载
pushedx超过 1 年前
Happy user of NetworkX since 2009!
tangue超过 1 年前
Back in the days I’ve discovered NetworkX and Gephi in a Coursera course and was really surprised about how simple it managed to represent visually such a hard problem (I’ve never been able to find this course again it started with Erdos number that’s the only thing I remember)
评论 #38596740 未加载
shrubbery超过 1 年前
On a related note, is there a popular option nowadays for a solid FOSS graph visualization library in the browser.<p>Years back I used zoomcharts which was really good but had an expensive licence for on premise usage per client.
7thaccount超过 1 年前
Very useful library. Representing large networks with graphs is super useful.
lemonish97超过 1 年前
used this throughout my ML on graphs grad course this sem, it’s a really neat library
cjdrake超过 1 年前
The &quot;N&quot; in HN stands for &quot;news&quot;. Is there anything new about networkx to talk about?
评论 #38578900 未加载
评论 #38579158 未加载
评论 #38578957 未加载
评论 #38581102 未加载
评论 #38579330 未加载
评论 #38579945 未加载
评论 #38579515 未加载