My graph has 8400+ nodes for which I want to get all pairs shortest path for all the nodes. I tried using by networkx, it is resulting in Memory Error.
Traceback (most recent call last):
File "C:\Users\Asif\pythonworkspace\Formally\src\lastlast.py", line 19, in <module>
mynewgraph = nx.all_pairs_shortest_path(myGraph)
File "C:\Python27\lib\site-packages\networkx\algorithms\shortest_paths\unweighted.py", line 290, in all_pairs_shortest_path
paths[n]=single_source_shortest_path(G,n,cutoff=cutoff)
File "C:\Python27\lib\site-packages\networkx\algorithms\shortest_paths\unweighted.py", line 254, in single_source_shortest_path
paths[w]=paths[v]+[w]
MemoryError
I have just tried this mynewgraph = nx.all_pairs_shortest_path(myGraph)
All are my nodes have string data type and every edge has a weight associated to it.
Please provide your suggestions