mirror of
https://github.com/Kitware/CMake.git
synced 2025-07-19 14:04:19 +08:00

A cycle exists when the DFS returns to the root node, not just when multiple paths lead to the same node. Inspired-By: Alexander Esilevich <aesilevich@pathscale.com>