소스 검색
Update dfs.py
pull/31/head
NANCY ANAND
4 년 전
committed by
GitHub
No known key found for this signature in database
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) |
|
|
|
|
|
|
|