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

Tag

# #cycle-detection

5 posts · 0 followers

[Chetan Datta](https://hashnode.com/@chetan77) · [Aug 24, 2025](https://hashnode.com/posts/directed-graph-cycle-dfs-bfs/68ab59fd4e241467fd1b0be6)

### [Directed Graph Cycle (DFS | BFS)](https://chetan77.hashnode.dev/directed-graph-cycle-dfs-bfs?utm_source=hashnode&utm_medium=feed)

Problem Given a Directed Graph with V vertices (Numbered from 0 to V-1) and E edges, check whether it contains any cycle or not.The graph is represented as a 2D vector edges\[\]\[\], where each entry edges\[i\] = \[u, v\] denotes an edge from verticex u to v...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/directed-graph-cycle-dfs-bfs?utm_source=hashnode&utm_medium=feed)

[Anni Huang](https://hashnode.com/@HuangAnni) · [Jul 15, 2025](https://hashnode.com/posts/can-we-always-change-bfs-solution-to-dfs-solution/6875b0eb1227c3bb3de604d9)

### [Can we always change BFS solution to DFS solution?](https://huanganni.hashnode.dev/can-we-always-change-bfs-solution-to-dfs-solution?utm_source=hashnode&utm_medium=feed)

There are some scenarios which you must use BFS or DFS

6 min read · [huanganni.hashnode.dev](https://huanganni.hashnode.dev/can-we-always-change-bfs-solution-to-dfs-solution?utm_source=hashnode&utm_medium=feed)

[gayatri kumar](https://hashnode.com/@GeeKee) · [Jun 24, 2025](https://hashnode.com/posts/bellman-ford-algorithm-handling-tunnels-with-negative-resistance/685a935699ec3c814789479b)

### [Bellman-Ford Algorithm: Handling Tunnels with Negative Resistance](https://geekee.hashnode.dev/bellman-ford-algorithm-handling-tunnels-with-negative-resistance?utm_source=hashnode&utm_medium=feed)

Bellman-Ford finds optimal paths in networks with negative weights or "boosts," preventing infinite loops by detecting negative cycles

9 min read · [geekee.hashnode.dev](https://geekee.hashnode.dev/bellman-ford-algorithm-handling-tunnels-with-negative-resistance?utm_source=hashnode&utm_medium=feed)

[gayatri kumar](https://hashnode.com/@GeeKee) · [Jun 22, 2025](https://hashnode.com/posts/cycle-detection-in-directed-graphs-preventing-loops-in-tasks/6857f06446451a8c523af266)

### [Cycle Detection in Directed Graphs: Preventing Loops in Tasks](https://geekee.hashnode.dev/cycle-detection-in-directed-graphs-preventing-loops-in-tasks?utm_source=hashnode&utm_medium=feed)

Prevent infinite loops in task scheduling using DFS and Kahn’s algorithm for cycle detection in directed graphs with examples and code

9 min read · [geekee.hashnode.dev](https://geekee.hashnode.dev/cycle-detection-in-directed-graphs-preventing-loops-in-tasks?utm_source=hashnode&utm_medium=feed)

[Safiul Kabir](https://hashnode.com/@safiulanik) · [Jul 23, 2023](https://hashnode.com/posts/cycle-detection-algorithms/64bd670a30b3e8e69b858759)

### [Cycle Detection Algorithms](https://safiulkabir.com/cycle-detection-algorithms?utm_source=hashnode&utm_medium=feed)

Today we will discuss three algorithms to detect cycles in a linked list: Floyd's Tortoise and Hare Algorithm Brent's Algorithm Gosper's Algorithm 1. Floyd's Tortoise and Hare Algorithm Floyd’s cycle finding algorithm or Hare-Tortoise algorithm ...

6 min read · [safiulkabir.com](https://safiulkabir.com/cycle-detection-algorithms?utm_source=hashnode&utm_medium=feed)
