graphs.g_topological_sort

Attributes

clothes

graph

stack

visited

Functions

depth_first_search(u, visited, graph)

print_stack(stack, clothes)

topological_sort(graph, visited)

Module Contents

graphs.g_topological_sort.print_stack(stack, clothes)
graphs.g_topological_sort.topological_sort(graph, visited)
graphs.g_topological_sort.clothes
graphs.g_topological_sort.graph = [[1, 4], [2, 4], [3], [], [], [4], [2, 7], [3], []]
graphs.g_topological_sort.stack = []
graphs.g_topological_sort.visited