Skip to content

AmritOhri/DFS-graph-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

//# DFS-graph- void DFS(int s, bool Visited[]){ if (Visited[s]==true) return; Visited[s]=true; cout<<s<<" "; for (auto it=ll[s].begin();it!=ll[s].end();it++) DFS(*it,Visited);

}

void DFS(int s){
    bool Visited[V];
    for (int i=0;i<V;i++) Visited[i]=false;
    DFS(s,Visited);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages