@mikuroxina/mini-fn
    Preparing search index...

    Function topologicalSort

    • Sorts the vertices of a directed acyclic graph (DAG) in the topological order. It is useful for resolving dependencies.

      Parameters

      Returns Result.Result<Readonly<{ at: Edge }>, Vertex[]>

      The topological order vertices of Ok, or a CycleError on Err only if there is a cycle.