• Type Parameters

    Parameters

    • graph: Graph<T>
    • mode: 1 | 2 = SortMode.Group

    Returns { cycles: T[][]; nodes: any }