diff --git a/graphs/top_sort.md b/graphs/top_sort.md index e4617d6..3f9807b 100644 --- a/graphs/top_sort.md +++ b/graphs/top_sort.md @@ -23,7 +23,7 @@ def top_sort(graph): return list(sorted_nodes) -def dfs(graph, start_node, visited, sorted\_nodes): +def dfs(graph, start_node, visited, sorted_nodes): visited.add(start_node) if start_node in graph: neighbors = graph[start_node]