浏览代码
Update dfs.py
pull/31/head
NANCY ANAND
4 年前
提交者
GitHub
找不到此签名对应的密钥
GPG 密钥 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) |
|
|
|
|
|
|
|