Browse Source

Update dfs.py

pull/31/head
NANCY ANAND 5 years ago
committed by GitHub
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