About 191,000 results
Open links in new tab
  1. Detect Cycle in a Directed Graph - GeeksforGeeks

    Nov 4, 2025 · To detect a cycle in a directed graph, we use Depth First Search (DFS). In DFS, we go as deep as possible from a starting node. If during this process, we reach a node that we’ve already …

  2. Detecting Cycles in a Directed Graph - Baeldung

    Mar 18, 2024 · Finding cycles in a simple graph as in the first two examples in our article is simple. We can traverse all the vertices and check if any of them is connected to itself or connected to another …

  3. Algorithms for Detecting Cycles in Graphs: A Comprehensive Guide

    Detecting cycles in graphs is a fundamental problem in computer science with wide-ranging applications. We’ve explored several algorithms, each with its strengths and ideal use cases:

  4. DSA Graphs Cycle Detection - W3Schools

    It is important to be able to detect cycles in Graphs because cycles can indicate problems or special conditions in many applications like networking, scheduling, and circuit design.

  5. Efficient algorithm for detecting cycles in a directed graph

    Is there an efficient algorithm for detecting cycles within a directed graph? I have a directed graph representing a schedule of jobs that need to be executed, a job being a node and a dependency …

  6. Detecting Cycles in Graphs: A Deep Dive - numberanalytics.com

    Jun 13, 2025 · One crucial aspect of graph analysis is detecting cycles, which are paths that start and end at the same vertex, passing through at least one edge. In this article, we'll delve into the world of …

  7. Cycle Detection in Directed Graph Using DFS - getsdeready.com

    Jun 12, 2025 · Detecting a cycle in a directed graph is a fundamental problem in graph theory and computer science. Given the number of vertices V and a list of directed edges, the task is to …

  8. Cycle Detection - Graph Data Science Library

    The Cycle Detection problem seeks to find all the cycles (loops) in a graph. We apply the usual restriction that the cycles must be "simple cycles", that is, they must be paths that start and end at …

  9. Detect cycle in an undirected graph - GeeksforGeeks

    Nov 4, 2025 · The idea is quite similar to DFS-based cycle detection, but here we use Breadth First Search (BFS) instead of recursion. BFS explores the graph level by level, ensuring that each node is …

  10. Efficient Cycle Detection in Graphs - Simple Science

    Jun 21, 2025 · Cycle detection is a common problem in computer science, specifically in the study of graphs. Graphs are structures that consist of vertices (or nodes) connected by edges. Finding Cycles …