Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DFS(){
- for(int v = 1; v <= n; v = v+1){
- if(visited[v] == false)
- DFS_visit(v);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement