module documentation
Topological sorting algorithms.
Function | find |
Undocumented |
Function | sort |
sort the given list of items by dependency. |
Function | sort |
Undocumented |
Function | _gen |
Undocumented |
Type Variable | _T |
Undocumented |
def sort(tuples:
Collection[ Tuple[ _T, _T]]
, allitems: Collection[ _T]
, deterministic_order: bool
= True) -> Iterator[ _T]
:
(source)
¶
sort the given list of items by dependency. 'tuples' is a list of tuples representing a partial ordering. deterministic_order is no longer used, the order is now always deterministic given the order of "allitems". the flag is there for backwards compatibility with Alembic.