diff options
author | Dan Schult <dschult@colgate.edu> | 2017-09-12 13:03:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 13:03:20 -0400 |
commit | 108ff600c455582ca3fba54e91eccdda604a330c (patch) | |
tree | 2844b5fbfa1628bcd17c6c285df91a177548c1e2 | |
parent | 0652f201a914ec94f08974b6982031d9fbc5a48f (diff) | |
download | networkx-108ff600c455582ca3fba54e91eccdda604a330c.tar.gz |
Correct order of edge key and data in GEXFwriter.add_edges (#2666)
Fixes #2664
-rw-r--r-- | networkx/readwrite/gexf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/readwrite/gexf.py b/networkx/readwrite/gexf.py index 4cddf890..685fc42d 100644 --- a/networkx/readwrite/gexf.py +++ b/networkx/readwrite/gexf.py @@ -345,7 +345,7 @@ class GEXFWriter(GEXF): def edge_key_data(G): # helper function to unify multigraph and graph edge iterator if G.is_multigraph(): - for u, v, data, key in G.edges(data=True, keys=True): + for u, v, key, data in G.edges(data=True, keys=True): edge_data = data.copy() edge_data.update(key=key) edge_id = edge_data.pop('id', None) |