Skip to content

[networkx] Use concrete node types for the Harary, circulant and expander generators - #16635

Merged
srittau merged 2 commits into
python:mainfrom
dannyshafer:networkx-harary-expander-node-types
Oct 28, 2026
Merged

srittau merged 2 commits into
python:mainfrom
dannyshafer:networkx-harary-expander-node-types

Conversation

@dannyshafer

@dannyshafer dannyshafer commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

These generators build their graphs on range(n) (or (x, y) tuples for margulis_gabber_galil_graph), so they now return Graph[int] / Graph[tuple[int, int]] instead of Graph[Incomplete] (harary, expanders, circulant_graph).

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 27ab92d into python:main Oct 28, 2026
74 checks passed
@dannyshafer
dannyshafer deleted the networkx-harary-expander-node-types branch October 28, 2026 16:28
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