Skip to content

[networkx] Use concrete node types for the caveman, ring of cliques, windmill and LFR generators - #16661

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

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

Conversation

@dannyshafer

Copy link
Copy Markdown
Contributor

These generators all build their graphs on range(n) style integer nodes, so they now return Graph[int] instead of Graph[Incomplete] (caveman_graph, connected_caveman_graph, relaxed_caveman_graph, ring_of_cliques, windmill_graph, LFR_benchmark_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 fa1e758 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