Live data from Hacker News

NetworkX – Network Analysis in Python

networkx.org

21–30 of 65 posts

Re: NetworkX – Network Analysis in Python

#21
post #4

Love it. Using it for load balancing of substation transformers. The grid is a graph.

Interesting you should say that, as I am trying to start a project where I need to make an electric grid graph, but I am not sure where to find the node/edge data for substations and transmission lines that include their specs and capacities. Is that stuff open source somewhere, like with the ISOs, or do you need to build it from scratch?

Re: NetworkX – Network Analysis in Python

#22

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…

We make it pretty easy to go from networkx or any other pydata (DF, csv, parquet, ...) to interactive GPU viz w all sorts of analytics built in: https://github.com/graphistry/pygraphistry#explore-any-data-...

Re: NetworkX – Network Analysis in Python

#24
post #21
post #4

Love it. Using it for load balancing of substation transformers. The grid is a graph.

Interesting you should say that, as I am trying to start a project where I need to make an electric grid graph, but I am not sure where to find the node/edge data for substations and transmission lines that include their specs and capacities. Is that stuff open source somewhere, like with the ISOs, or do you need to build it from scratch?

Have a look at IEC CIM (Common Information Model)

  - https://en.m.wikipedia.org/wiki/Common_Information_Model_(electricity)
  - https://zepben.bitbucket.io/cim/cim100/
  - https://ontology.tno.nl/IEC_CIM/

Re: NetworkX – Network Analysis in Python

#25
post #8

Igraph and cugraph, and graph tool are far superior for a wide variety of reasons

I would be interested in one that is properly type annotated. None of the options here (NetworkX, igraph, cugraph) are.

https://news.ycombinator.com/item?id=36922924 :

> pytype (Google) [1], PyAnnotate (Dropbox) [2], and MonkeyType (Instagram) [3] all do dynamic / runtime PEP-484 type annotation type inference [4] to generate type annotations.

Hypothesis generates tests from type annotations; and icontract and pycontracts do runtime type checking.

Re: NetworkX – Network Analysis in Python

#26

Igraph and cugraph, and graph tool are far superior for a wide variety of reasons

/? "networkx" "igraph" "cugraph" site:github.com inurl:awesome https://www.google.com/search?q=%22networkx%22+%22igraph%22+... :

- https://github.com/johnhany/awesome-list#graph lists a few Tensorflow and Pytorch + graphs applications

CuGraph docs > List of Supported and Planned Algorithms: https://docs.rapids.ai/api/cugraph/stable/graph_support/algo...

https://github.com/rapidsai/cugraph#news :

> NEW! nx-cugraph, a NetworkX backend that provides GPU acceleration to NetworkX with zero code change. :

  pip install nx-cugraph-cu11 --extra-index-url https://pypi.nvidia.com
  export NETWORKX_AUTOMATIC_BACKENDS=cugraph

Re: NetworkX – Network Analysis in Python

#27
post #4

Love it. Using it for load balancing of substation transformers. The grid is a graph.

I have tried to talk to engineers about contingency analyses for what would happen if a unit went down, and they tend to have very wishy washy answers. Or giant tediously compiled reports that can model exactly one change.

Any idea why that is?

Re: NetworkX – Network Analysis in Python

#28
post #5

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

So much "news" these days is just unadulterated crass clickbait, that a friendly reminder to revisit interesting subjects really does qualify as above average "news", yes. Sadly?

Re: NetworkX – Network Analysis in Python

#29

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…

Export the graph to GML or to GraphML or to GraphViz DOT or to some other Graph format, and feed it to a dedicated utility. BTW I recommend 3D graph visualization over 2D when possible, that is when you're exploring interactively as opposed to printing figures. The Graphia tool is the only FOSS tool for this purpose that I know of:

https://graphia.app

https://github.com/graphia-app/graphia

Re: NetworkX – Network Analysis in Python

#30
post #24
post #21

Earlier quoted context omitted.

Interesting you should say that, as I am trying to start a project where I need to make an electric grid graph, but I am not sure where to find the node/edge data for substations and transmission lines that include their specs and capacities. Is that stuff open source somewhere, like with the ISOs, or do you need to build it from scratch?

Have a look at IEC CIM (Common Information Model) - https://en.m.wikipedia.org/wiki/Common_Information_Model_(electricity) - https://zepben.bitbucket.io/cim/cim100/ - https://ontology.tno.nl/IEC_CIM/

Thanks!
Post reply on HN