@eagleoutice/flowr - v2.17.4
    Preparing search index...

    Class StronglyConnected<K>

    The strongly connected components of a graph whose successors are asked for only once a node is reached (Tarjan's algorithm, iterative).

    Type Parameters

    • K
    Index
    • Type Parameters

      • K

      Parameters

      • next: (node: K) => Iterable<K>

        the nodes a node leads to, asked for once per node

      • onComplete: (members: readonly K[], successorsOf: (member: K) => readonly K[]) => void

        called with the members of each component once all components it leads to are complete

      Returns StronglyConnected<K>

    • Completes the component of start and every component it leads to.

      Parameters

      • start: K

      Returns void