Traceback (most recent call last):
File "../scripts/yed2graphml.py", line 27, in <module>
del G.edge['n0']['n1']['iteration']
KeyError: 'iteration'
The nodes are 'n0' and 'n1' ; the attributes is 'iteration'.
I am reading the graph from a graphml file (I assume it a multigraph).
G = nx.read_graphml(sys.argv[1])
If I do:
del G.edge['n0']['n1'][0]['iteration']
I get a similar error
Traceback (most recent call last):
File "../scripts/yed2graphml.py", line 27, in <module>
del G.edge['n0']['n1'][0]['iteration']
KeyError: 0
Do you have any suggestion?