Skip to content

Commit 82c162e

Browse files
authored
Bug fix in libraries.py
The 'pop' function in line 58 is called wrongly, resulting in: TypeError: 'builtin_function_or_method' object is not subscriptable
1 parent bcbefc9 commit 82c162e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/igraph/io/libraries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _export_graph_to_networkx(
5555
eattr["_igraph_index"] = i
5656

5757
if multigraph and "_nx_multiedge_key" in eattr:
58-
eattr["key"] = eattr.pop["_nx_multiedge_key"]
58+
eattr["key"] = eattr.pop("_nx_multiedge_key")
5959

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

0 commit comments

Comments
 (0)