Skip to content

Commit 5240732

Browse files
authored
[networkx] Type max_flow_min_cost endpoints as nodes (#16559)
1 parent f8957d3 commit 5240732

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎stubs/networkx/networkx/algorithms/flow/mincost.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ def min_cost_flow(
1717
def cost_of_flow(G: Graph[_Node], flowDict: SupportsGetItem[Incomplete, Incomplete], weight: str = "weight") -> int | float: ...
1818
@_dispatchable
1919
def max_flow_min_cost(
20-
G: Graph[_Node], s: str, t: str, capacity: str = "capacity", weight: str = "weight"
20+
G: Graph[_Node], s: _Node, t: _Node, capacity: str = "capacity", weight: str = "weight"
2121
) -> dict[Incomplete, dict[Incomplete, Incomplete]]: ...

0 commit comments

Comments
 (0)