drewconway / networkx_intro_materials Goto Github PK
View Code? Open in Web Editor NEWMaterials for Introduction to NetworkX workshop, presented at Sunbelt 2010
Home Page: http://www.insna.org/PDF/Sunbelt/4_WorkshopsPDF.pdf
Materials for Introduction to NetworkX workshop, presented at Sunbelt 2010
Home Page: http://www.insna.org/PDF/Sunbelt/4_WorkshopsPDF.pdf
In your slides for module II "Why Do SNA with NX", you claim that NetworkX is more scalable than most network analysis libraries.
While I am a huge fan of NetworkX, I don't think of it as particularly scalable, because at it's core it is implemented in native python---the basic representation of the adjacency matrix is a python dictionary.
Python objects (such as python ints, etc.) take up way more memory than, say, integers in C++ or integers in numpy, so that already means that I can fit only smaller graphs into memory if I'm using networkx. If networkx used a SciPy sparse matrix to represent the adjacency matrix, then this would not be the case.
Also, even simple tasks like parsing an edgelist take a lot longer using networkx because of the way memory is managed in python (e.g., the memory for the entire graph is not allocated all at once).
I was surprised to see that you describe NetworkX as being implemented in C and Fortran, when as far as I can tell it is mostly in python. I have noticed that a few algorithms such as pagerank make calls to numpy, which, depending on the system, might make use of highly efficient legacy code (in Fortran or C), but is this really generally the case?
I don't mean to criticize NetworkX---I really think it's a great library and the right tool for most networks. But as far as I can tell it's not actually the right tool for looking at huge networks, so I just don't want people to get the wrong idea from this presentation.
Maybe you can convince me that NetworkX is or will soon be good for huge graphs as well. Because I though other people would be intersted in this question, I've posted it on Stackoverflow here---please answer this question there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.