From 69834fbfb89a79ea2b5e6fa492f2d1f9cf726c6d Mon Sep 17 00:00:00 2001 From: NANCY ANAND <41587186+nancyanand2807@users.noreply.github.com> Date: Mon, 21 Oct 2019 20:51:43 +0530 Subject: [PATCH] Update dfs.py --- dfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dfs.py b/dfs.py index 4590e21..0af865e 100644 --- a/dfs.py +++ b/dfs.py @@ -12,7 +12,7 @@ class Graph: # default dictionary to store graph self.graph = defaultdict(list) - # function to add an edge to graph + def addEdge(self, u, v): self.graph[u].append(v)