effect-tree
    Preparing search index...

    Tree arbitrary generation options.

    interface ArbitraryOptions {
        branchBias: number;
        maxChildren: number;
        maxDepth: number;
        onlyBranches: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    branchBias: number

    Ratio of trees generated that will be branches and not leaves. Expects a ratio in the inclusive range of 0…1. Default is ¼.

    maxChildren: number

    Max child count per branch. Default is 5.

    maxDepth: number

    Maximum depth of trees generated. An error is thrown if onlyBranches is true but maxDepth is 0.

    onlyBranches: boolean

    If true no leaves will be generated so that all trees will always have at least a height of 1. Default is false.