graph-toolkit
    Preparing search index...

    Interface EditDistanceOptions

    Lets callers cancel long-running (exponential-time) algorithms; they throw the abort reason.

    interface EditDistanceOptions {
        edgeCost?: number;
        maxVertices?: number;
        signal?: AbortSignalLike;
        vertexCost?: number;
    }

    Hierarchy (View Summary)

    Index
    edgeCost?: number

    Cost of inserting or deleting an edge. Default 1.

    maxVertices?: number

    Largest graph accepted, default 8 — the search is factorial.

    vertexCost?: number

    Cost of inserting or deleting a vertex. Default 1.