mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
add stubs for networx.has_path (#12252)
This commit is contained in:
committed by
GitHub
parent
5bf3f47496
commit
d498fe148e
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user