add networkx.topological_generations (#11927)

This commit is contained in:
Ryan Morshead
2024-05-17 00:52:26 -06:00
committed by GitHub
parent c99adf4b85
commit e7daedd6ab

View File

@@ -11,6 +11,8 @@ def ancestors(G: Graph[_Node], source: _Node) -> set[_Node]: ...
@_dispatch
def is_directed_acyclic_graph(G: Graph[_Node]) -> bool: ...
@_dispatch
def topological_generations(G: Graph[_Node]) -> Generator[list[_Node], None, None]: ...
@_dispatch
def topological_sort(G: Graph[_Node]) -> Generator[_Node, None, None]: ...
@_dispatch
def lexicographical_topological_sort(