Skip to content

[networkx] Use concrete node types for the small named graph generators - #16662

Merged
srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-small-graph-node-types
Oct 30, 2026
Merged

srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-small-graph-node-types

Conversation

@dannyshafer

Copy link
Copy Markdown
Contributor

Every generator in small.py builds its graph from integer-keyed adjacency dicts, LCF_graph, cycle_graph/path_graph/complete_graph, or relabels to integers (hoffman_singleton_graph), so they now return Graph[int] instead of Graph[Incomplete] (source).

Written with Claude Code (an AI coding agent).

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 797607e into python:main Oct 30, 2026
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants