Skip to content

Commit

Permalink
depth-first traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
ncxiao committed Nov 17, 2018
1 parent 5bdc857 commit 9434e1b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def dfs(network, v):
labelled = [ False for i in range(n)]
labelled[v] = True
while len(S) > 0:
print(S)
t = S.pop()
V.append(t)
for u in network[t]:
Expand Down

0 comments on commit 9434e1b

Please sign in to comment.