- Initialize the first node’s dist number and place in queue
- Repeat until all nodes have been examined
- Remove current node to be examined from queue
- Find all unlabeled nodes adjacent to current node
- If this is an unvisited node label it and add it to the queue
- Finished.
Discover more from Soa Technology | Aditya Website Development Designing Company
Subscribe to get the latest posts sent to your email.