Code Monkey home page Code Monkey logo

networkx_intro_materials's People

Contributors

drewconway avatar hagberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

networkx_intro_materials's Issues

Is NetworkX as scalable as you claim?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.