Browse Source

Update dfs.py

pull/31/head
NANCY ANAND GitHub 1 year ago
parent
commit
69834fbfb8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dfs.py

+ 1
- 1
dfs.py View File

@@ -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)


Loading…
Cancel
Save