-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using Multiple processors to speed up simulation #121
Comments
Unfortunately, for the moment it is not possible to parallelize a single experiment, only pools. However, we will consider this request for a future release! |
Thank you Sir, It would be a very powerful tool of utility. Till then, what do you suggest for working with relatively larger networks? I am working with a network that has 3862396 nodes and 4953798 edges. Models like SIR, SIS are relatively on waitable time, but SEIR, SWIR take a lot of time. Any tips on them large networks. |
One thing that might help, if you are storing your graph in a networkx object, is switching to igraph. Since the latest release ndlib natively supports both graph libraries. |
Would working on the same network with igraph give me speedup over Networkx? |
For sure igraph handles better graphs of that size than networkx (especially regarding memory consumption). |
Thank you. |
Actually, no docs for the moment (we're working on it). |
@GiulioRossetti Sir , I tried doing it the most simple way , as : from igraph import * |
Sorry, the examples in the docs are a little our of synch w.r.t. the latest version.
then use instantiate the model on the graph using
|
I'll try to replicate your issue as asap. However, there's something strange in your screen: it seems you are running everything under python 2.7 while the ndlib package has only been released for python 3. Can you change your evironment? |
Ok, I think I figured it out. To address your issue on the ER graph just do the following:
Then, everything will work fine. |
I had been previously making use of the library using Python2 (using NetworkX ). |
This is how I writing into multiprocess, the experiment I did is that I need a influence value on all nodes |
Is there any way I can speed up the diffusion simulation leveraging the multiple cores I have in my machine. I want to speed up a single experiment, for a relatively larger net.
Is there any way for optimization already existing.
Regards,
The text was updated successfully, but these errors were encountered: