Skip to content

Commit

Permalink
add stubs for networx.has_path (python#12252)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-kirkbride authored Jul 2, 2024
1 parent 5bf3f47 commit d498fe1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from networkx.classes.graph import Graph, _Node
from networkx.utils.backends import _dispatch

@_dispatch
def has_path(G, source, target): ...
def has_path(G: Graph[_Node], source: _Node, target: _Node) -> bool: ...
@overload
def shortest_path(
G: Graph[_Node], source: _Node, target: _Node, weight: Incomplete | None = None, method: str = "dijkstra"
Expand Down

0 comments on commit d498fe1

Please sign in to comment.