---
title: "Discussion on \"Breadth First Search (BFS): for Undirected Unweighted Graph\" | Hashnode"
description: "Discussion on \"Breadth First Search (BFS): for Undirected Unweighted Graph\". BFS Traversal — 4 Easy Rules\nRule 1 — Start\n\nPut the starting vertex into a queue.\n\nKeep an empty visited set.\n\n\n\nRule 2 — Take from Queue\n\nWhile the queue is not empty:\n\nRemove the front vertex from the queue.\n\n\n\n⚠️ Key difference from BFSBFS → Queu..."
url: "https://hashnode.com/posts/breadth-first-search-bfs-for-undirected-unweighted-graph/695c6acd3313a602923f1c52"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Breadth First Search (BFS): for Undirected Unweighted Graph](https://dsa-3956.hashnode.dev/breadth-first-search-bfs-for-undirected-unweighted-graph?utm_source=hashnode&utm_medium=feed)

BFS Traversal — 4 Easy Rules Rule 1 — Start Put the starting vertex into a queue. Keep an empty visited set. Rule 2 — Take from Queue While the queue is not empty: Remove the front vertex from the queue. ⚠️ Key difference from BFSBFS → Queu...

Jan 6 · 6 min read · dsa-3956.hashnode.dev  
Read the article

-   [#bfs](https://hashnode.com/tag/bfs)
-   [#graph](https://hashnode.com/tag/graph)
-   [#data-structure-and-algorithms](https://hashnode.com/tag/data-structure-and-algorithms)
-   [#queue](https://hashnode.com/tag/queue)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Bikash Mainali](https://hashnode.com/@bikash8848)

@bikash8848

  
[View profile](https://hashnode.com/@bikash8848)

Software Engineer

Experienced Java/JavaScript full-stack developer over 6 years of extensive expertise serving key role on elite technical teams developing enterprise software for healthcare, apple ad-platform, banking, and e-commerce. Adaptable problem-solver with high levels of skill in Groovy, Java, Spring, Spring Boot, Hibernate, JavaScript, TypeScript, Angular, Node, Express, React, MongoDB, IBM DB2, Oracle, PL/SQL, Docker, Kubernetes, CI/CD pipelines, AWS, Micro-service and Agile/Scrum. Strong technical skills paired with business-savvy UI design expertise. Personable team player with experience collaborating with diverse cross-functional teams.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
