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)