Function hasCycle

  • Returns whether the given graph contains a cycle reachable from the initial state.

    Type Parameters

    • S

    Parameters

    Returns boolean