From d0e0ea1d47bc4f1b2c463ae002256ba32e30d917 Mon Sep 17 00:00:00 2001 From: VarshiniShreeV Date: Sun, 27 Oct 2024 10:14:27 +0530 Subject: [PATCH] Fixed --- sorts/topological_sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorts/topological_sort.py b/sorts/topological_sort.py index 74fdd25ec..74c3432bc 100644 --- a/sorts/topological_sort.py +++ b/sorts/topological_sort.py @@ -16,7 +16,7 @@ edges: dict[str, list[str]] = { vertices: list[str] = ["a", "b", "c", "d", "e"] -"""Perform topological sort on a directed acyclic graph(DAG) starting from the specified node""" +# Perform topological sort on a DAG starting from the specified node def topological_sort(start: str, visited: list[str], sort: list[str]) -> list[str]: current = start # Mark the current node as visited