Skip to content

Commit e7daedd

Browse files
authored
add networkx.topological_generations (#11927)
1 parent c99adf4 commit e7daedd

File tree

1 file changed

+2
-0
lines changed
  • stubs/networkx/networkx/algorithms

1 file changed

+2
-0
lines changed

stubs/networkx/networkx/algorithms/dag.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ def ancestors(G: Graph[_Node], source: _Node) -> set[_Node]: ...
1111
@_dispatch
1212
def is_directed_acyclic_graph(G: Graph[_Node]) -> bool: ...
1313
@_dispatch
14+
def topological_generations(G: Graph[_Node]) -> Generator[list[_Node], None, None]: ...
15+
@_dispatch
1416
def topological_sort(G: Graph[_Node]) -> Generator[_Node, None, None]: ...
1517
@_dispatch
1618
def lexicographical_topological_sort(

0 commit comments

Comments
 (0)