Got graphs with cycle detection