瀏覽代碼
Update dfs.py
pull/31/head
NANCY ANAND
4 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
1 次插入 和
1 次删除
-
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) |
|
|
|
|
|
|
|