You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line 19 of dfs.py we should add another condition that cur vertex should not be present in stack.
In case of K3 graph the output of your programme is [0, 2, 1, 1].
The text was updated successfully, but these errors were encountered:
In line 19 of dfs.py we should add another condition that cur vertex should not be present in stack.
In case of K3 graph the output of your programme is [0, 2, 1, 1].
The text was updated successfully, but these errors were encountered: