It seems to me the stubs for set_edge_attributes are wrong, since it wants no name with scalar values.
Python 3.13.13 (main, Apr 9 2026, 09:11:06) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx as nx
>>> G = nx.path_graph(3)
>>> nx.set_edge_attributes(G, 5, "some name")
>>> G.edges[0,1]["some name"]
5
Activity