From 82c162e7da9bbf18a53a0122992cf0afff883e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Monteiro=20de=20Moraes=20de=20Arruda=20Falc?= =?UTF-8?q?=C3=A3o?= Date: Wed, 20 Mar 2024 19:52:00 -0300 Subject: [PATCH] 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 --- src/igraph/io/libraries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/igraph/io/libraries.py b/src/igraph/io/libraries.py index 52e47b8af..f35cc9545 100644 --- a/src/igraph/io/libraries.py +++ b/src/igraph/io/libraries.py @@ -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]