Skip to content

[networkx] Type max_flow_min_cost endpoints as nodes - #16559

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
Cherith1222:fix/16544-max-flow-node-type
Oct 20, 2026
Merged

JelleZijlstra merged 1 commit into
python:mainfrom
Cherith1222:fix/16544-max-flow-node-type

Conversation

@Cherith1222

Copy link
Copy Markdown
Contributor

Use the graph node type for s and t in max_flow_min_cost.

Fixes #16544.

Upstream: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.flow.max_flow_min_cost.html

Agent: Cursor

Drafted with Cursor.

@github-actions

Copy link
Copy Markdown
Contributor

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

@JelleZijlstra
JelleZijlstra merged commit 5240732 into python:main Oct 20, 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.

nx.max_flow_min_cost should support taking in two graph nodes

2 participants