Live data from Hacker News

NetworkX – Network Analysis in Python

networkx.org

11–20 of 65 posts

Re: NetworkX – Network Analysis in Python

#11
post #5

The "N" in HN stands for "news". Is there anything new about networkx to talk about?

I believe it's really useful that sometimes things resurface on HN after a while.

1. Exposure of techniques, tools to people that are new to the field, or now the context is right.

2. People with experience share their insights and opinions (TIL: Igraph an/cugraph)

Re: NetworkX – Network Analysis in Python

#12

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…

I use NetworkX to build the graphs and Gephi to visualize them. No need to pick a single tool.

Re: NetworkX – Network Analysis in Python

#13

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…

Laying out a graph so it's "friendly to humans" is a seriously hard problem. I've built complex DAG workflow engines using networkx and its layout tools and they worked just fine. But, yeah, I guess it depends on what you need?

Export to .dot -> open in your favourite viewer.

Re: NetworkX – Network Analysis in Python

#14
post #5

The "N" in HN stands for "news". Is there anything new about networkx to talk about?

Graph theory underpins nearly everything we do in software development and computer science. Networkx is an expansive -- though not the only -- package for Python that'll solve 90% of people's problems.

Re: NetworkX – Network Analysis in Python

#18
post #11
post #5

The "N" in HN stands for "news". Is there anything new about networkx to talk about?

I believe it's really useful that sometimes things resurface on HN after a while. 1. Exposure of techniques, tools to people that are new to the field, or now the context is right. 2. People with experience share their insights and opinions (TIL: Igraph an/cugraph)

I'd add to that, the comments are fresh on resurfaced article, so if there is a new competitor or alternative it get's mentioned.

Re: NetworkX – Network Analysis in Python

#19

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…

> 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.

Well, yeah, it is pretty open that it is the wrong tool for that job. Here's what the NetworkX documentation [0] says about its visualization support:

NetworkX provides basic functionality for visualizing graphs, but its main goal is to enable graph analysis rather than perform graph visualization. In the future, graph visualization functionality may be removed from NetworkX or only available as an add-on package.

Proper graph visualization is hard, and we highly recommend that people visualize their graphs with tools dedicated to that task. Notable examples of dedicated and fully-featured graph visualization tools are Cytoscape, Gephi, Graphviz and, for LaTeX typesetting, PGF/TikZ. To use these and other such tools, you should export your NetworkX graph into a format that can be read by those tools. For example, Cytoscape can read the GraphML format, and so, networkx.write_graphml(G, path) might be an appropriate choice.

[0] https://networkx.org/documentation/latest/reference/drawing....

Re: NetworkX – Network Analysis in Python

#20
post #5

The "N" in HN stands for "news". Is there anything new about networkx to talk about?

https://news.ycombinator.com/newsguidelines.html

> On-Topic: Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity.

Post reply on HN