FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

`networkx.set_edge_attributes` should support scalar value + name · Issue #16542 · python/typeshed · GitHub

Repository navigation

networkx.set_edge_attributes should support scalar value + name #16542

Open

Description

See https://networkx.org/documentation/stable/reference/generated/networkx.classes.function.set_edge_attributes.html

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL