graphs.g_topological_sort ========================= .. py:module:: graphs.g_topological_sort Attributes ---------- .. autoapisummary:: graphs.g_topological_sort.clothes graphs.g_topological_sort.graph graphs.g_topological_sort.stack graphs.g_topological_sort.visited Functions --------- .. autoapisummary:: graphs.g_topological_sort.depth_first_search graphs.g_topological_sort.print_stack graphs.g_topological_sort.topological_sort Module Contents --------------- .. py:function:: depth_first_search(u, visited, graph) .. py:function:: print_stack(stack, clothes) .. py:function:: topological_sort(graph, visited) .. py:data:: clothes .. py:data:: graph :value: [[1, 4], [2, 4], [3], [], [], [4], [2, 7], [3], []] .. py:data:: stack :value: [] .. py:data:: visited