assertNoCycles

Detects dependency cycles in the module graph and throws an AssertionError if a cycle is found. The verification is performed using a Depth-First Search (DFS) traversal.

Throws

if any circular dependency is detected.