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
I think the codes you have written belong to the dfs algorithm but not dijkstra, because the dijkstra algorithm uses the greedy strategy and each time the shortest distance is selected and added to the set.