Skip to content

Commit

Permalink
Bug fix in libraries.py
Browse files Browse the repository at this point in the history
The 'pop' function in line 58 is called wrongly, resulting in:

TypeError: 'builtin_function_or_method' object is not subscriptable
  • Loading branch information
rmmaf authored Mar 20, 2024
1 parent bcbefc9 commit 82c162e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igraph/io/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _export_graph_to_networkx(
eattr["_igraph_index"] = i

if multigraph and "_nx_multiedge_key" in eattr:
eattr["key"] = eattr.pop["_nx_multiedge_key"]
eattr["key"] = eattr.pop("_nx_multiedge_key")

if vertex_attr_hashable in graph.vertex_attributes():
hashable_source = graph.vs[vertex_attr_hashable][edge.source]
Expand Down

0 comments on commit 82c162e

Please sign in to comment.