linked-rolls
    Preparing search index...

    Function withGenerations

    • Every version with its generation: how many principal derivations lie between it and the root. A version whose parent the edition does not hold counts as a root. In a stemma that loops, the loop is walked once round, as lineageOf walks it, so that the stemma of an edition in that state can still be drawn and repaired.

      Parameters

      • edition: Pick<Edition, "versions">

      Returns (Version & { generation: number })[]