tgraboski/tarjan (packagist): A simple cycle-detection algorithm. Given an edge-edges adjacency list, it returns a list of cycles.
Keywords: algorithm|graph|php