RuntimeError: dictionary changed size during iteration
youjin-c opened this issue · 2 comments
youjin-c commented
I just downloaded the repo and was testing your testing example.
karate.adjlist worked well, but p2p-Gnutella08.edgelist didn't work, which I need to check for my custom dataset.
This is the error command.
deepwalk --input example_graphs/p2p-Gnutella08.edgelist --output gnutella.embeddings
File "/Users/EUGENE/anaconda3/envs/thesis/bin/deepwalk", line 11, in <module>
load_entry_point('deepwalk==1.0.3', 'console_scripts', 'deepwalk')()
File "/Users/EUGENE/anaconda3/envs/thesis/lib/python3.7/site-packages/deepwalk-1.0.3-py3.7.egg/deepwalk/__main__.py", line 162, in main
process(args)
File "/Users/EUGENE/anaconda3/envs/thesis/lib/python3.7/site-packages/deepwalk-1.0.3-py3.7.egg/deepwalk/__main__.py", line 52, in process
G = graph.load_adjacencylist(args.input, undirected=args.undirected)
File "/Users/EUGENE/anaconda3/envs/thesis/lib/python3.7/site-packages/deepwalk-1.0.3-py3.7.egg/deepwalk/graph.py", line 233, in load_adjacencylist
G = G.make_undirected()
File "/Users/EUGENE/anaconda3/envs/thesis/lib/python3.7/site-packages/deepwalk-1.0.3-py3.7.egg/deepwalk/graph.py", line 53, in make_undirected
for v in self.keys():
RuntimeError: dictionary changed size during iteration
youjin-c commented
sorry I forgot to put --format
liwt31 commented
I met the same issue and it turns out that my input adjlist is incorrectly produced and total nonsense