Skip to content

[networkx] Return the input node type from center, centroid and moral_graph - #16602

Merged
srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-center-moral-node-types
Oct 23, 2026
Merged

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

Conversation

@dannyshafer

Copy link
Copy Markdown
Contributor

center and centroid return nodes of the input tree (upstream, upstream), and moral_graph builds its result from G.to_undirected() (upstream), so they now use the input's node type instead of Incomplete.

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 4c296ac into python:main Oct 23, 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.

3 participants