Algorithms | Graph Traversals | Question 12

Last Updated :
Discuss
Comments

The Breadth First Search algorithm has been implemented using the queue data structure. One possible order of visiting the nodes of the following graph is 
 

 

MNOPQR

NQMPOR

QMNPRO

QMNPOR

Share your thoughts in the comments