sorts.topological_sort ====================== .. py:module:: sorts.topological_sort .. autoapi-nested-parse:: Topological Sort. Attributes ---------- .. autoapisummary:: sorts.topological_sort.edges sorts.topological_sort.sort sorts.topological_sort.vertices Functions --------- .. autoapisummary:: sorts.topological_sort.topological_sort Module Contents --------------- .. py:function:: topological_sort(start: str, visited: list[str], sort: list[str]) -> list[str] Perform topological sort on a directed acyclic graph. .. py:data:: edges :type: dict[str, list[str]] .. py:data:: sort :value: [] .. py:data:: vertices :type: list[str] :value: ['a', 'b', 'c', 'd', 'e']