find-cycle
find and identify a cycle in a directed graph
@gsvlabs/graph-search
Simple library to search and traverse graphs using DFS, BFS algorithms, and also detect cycles in directed graph input
incremental-cycle-detect
Keeps a directed acyclic graph topologically sorted each time you add an edge or vertex to check for cycles.