Skip to content

The repository contains python code to traverse any graph given in the form of dictionary to perform Breadth First Search (BFS) and Depth First Search (DFS).

Notifications You must be signed in to change notification settings

Agha-Muqarib/Graph-Traversal-Via-BFS-DFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Graph-Traversal-Via-BFS-DFS

The repository contains python code to traverse any graph given in the form of dictionary to perform Breadth First Search (BFS) and Depth First Search (DFS) algorithms.

Output:

The output for BFS looks like this:

BFS

The output for DFS looks like this:

DFS

About

The repository contains python code to traverse any graph given in the form of dictionary to perform Breadth First Search (BFS) and Depth First Search (DFS).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages