[Networkit] Read simple edgelist
jeromedesch at gmail.com
Wed Nov 25 22:34:38 CET 2015
Thank you very much to all of you.
I thought as well that this module should be in distance (in my message).
Anyway, I am able to do what I want with NetworkX. I was just expecting
NetworKit to have a simpler (at least more efficient) way to do it.
Just for your information, it looks like this :
import networkx as nx
from multiprocessing.dummy import Pool as TPool
import numpy as np
with open('list_of_many_desired_distances.txt') as f:
reader = csv.reader(f, delimiter=' ')
your_list = list(reader)
pool = TPool(processes=32)
results = pool.map(test, l)
np.savetxt("myresults.txt", b5, delimiter=",")
2015-11-25 16:20 GMT-05:00 Christian Staudt <christian.staudt at kit.edu>:
> > On 25 Nov 2015, at 15:13, Maximilian Vogel <
> maximilian.vogel at student.kit.edu> wrote:
> > I was about to mention APSP as well. Under Python it can be found under
> dynamic.APSP (for whatever reason it is placed there...).
> It really doesn't belong there, and neither in 'graph'. I suggest to put
> it into the 'distance' module.
> NetworKit mailing list
> NetworKit at ira.uni-karlsruhe.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NetworKit