Directed Graphs and Cycles
Jump to navigation
Jump to search
Internal
Overview
Detect Cycles using Topological Sort
Topologically sort a directed graph, then scan the vertices and ensure that each directed edge complies with the topological order. If there are cycles, there will be at least one that does not.
TO PROCESS: https://www.geeksforgeeks.org/detect-cycle-in-directed-graph-using-topological-sort/