mevipinmaurya / hbtuHacktoberfest2024

#hacktoberfest #open-source #good-first-issue #help-wanted
3 stars 17 forks source link

Create detection.py #9

Closed s7917 closed 1 month ago

s7917 commented 1 month ago

Cycle Detection in a directed graph using Depth First Search (DFS) and Kahn’s Algorithm (BFS). These methods can be used to detect cycles in directed and undirected graphs.