NANCY ANAND
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
|
|
|
|