---
title: "Discussion on \"Graph : Depth-First Search (DFS)\" | Hashnode"
description: "Discussion on \"Graph : Depth-First Search (DFS)\". Explain the Problem\nImplement the Depth-First Search (DFS) algorithm for graph traversal. Given a graph and a starting vertex, traverse the graph in depth-first order and print the vertices in the order they are visited.\nExample:\nInput:\nGraph: \n0: [1..."
url: "https://hashnode.com/posts/graph-depth-first-search-dfs/667dc955ae71209ebf1376c6"
---

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

Discussion

# [Graph : Depth-First Search (DFS)](https://lietcode.hashnode.dev/graph-depth-first-search-dfs?utm_source=hashnode&utm_medium=feed)

Explain the Problem Implement the Depth-First Search (DFS) algorithm for graph traversal. Given a graph and a starting vertex, traverse the graph in depth-first order and print the vertices in the order they are visited. Example: Input: Graph: 0: \[1...

Jun 27, 2024 · 5 min read · lietcode.hashnode.dev  
Read the article

-   [#graph-database](https://hashnode.com/tag/graph-database)
-   [#dfs](https://hashnode.com/tag/dfs)

## Written by

[Abhi](https://hashnode.com/@lietcode)

@lietcode

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

Let's crack the interviews

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
