findVariants()
findVariants(
graphs):Variant[]
Defined in: process-mining.ts:173
Group execution graphs by their structural path and return variant clusters.
Variants are sorted by frequency (most common first). Ties are broken alphabetically by path signature.
Parameters
| Parameter | Type | Description |
|---|---|---|
graphs | ExecutionGraph[] | Array of execution graphs. |
Returns
Variant[]
Variant clusters sorted by frequency descending.
Example
const variants = findVariants(graphs);
console.log(`${variants[0].percentage}% of runs follow the happy path`);