---
title: "#undirected-graph articles | Hashnode"
description: "Explore 1 articles tagged #undirected-graph on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/undirected-graph"
---

Tag

# #undirected-graph

1 posts · 0 followers

[Chetan Datta](https://hashnode.com/@chetan77) · [Sep 7, 2025](https://hashnode.com/posts/shortest-path-in-undirected-graph/68bd818b4b9eca470640e4bc)

### [Shortest Path in Undirected Graph](https://chetan77.hashnode.dev/shortest-path-in-undirected-graph?utm_source=hashnode&utm_medium=feed)

Problem You are given an adjacency list, adj of Undirected Graph having unit weight of the edges, find the shortest path from src to all the vertex and if it is unreachable to reach any vertex, then return -1 for that vertex. Examples : Input: adj\[\]\[...

4 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/shortest-path-in-undirected-graph?utm_source=hashnode&utm_medium=feed)
