mirror of
https://github.com/django/django.git
synced 2025-09-28 21:14:55 +00:00
Clarified topological_sort_as_sets() docstring.
This commit is contained in:
parent
674e3fe13e
commit
3fe92f4477
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ def topological_sort_as_sets(dependency_graph):
|
||||||
|
|
||||||
Yields sets of items in topological order, where the first set contains
|
Yields sets of items in topological order, where the first set contains
|
||||||
all nodes without dependencies, and each following set contains all
|
all nodes without dependencies, and each following set contains all
|
||||||
nodes that depend on the nodes in the previously yielded sets.
|
nodes that may depend on the nodes only in the previously yielded sets.
|
||||||
"""
|
"""
|
||||||
todo = dependency_graph.copy()
|
todo = dependency_graph.copy()
|
||||||
while todo:
|
while todo:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue