discoverProcess()
discoverProcess(
graphs):ProcessModel
Defined in: process-mining.ts:102
Discover a process model from multiple execution graphs.
Walks every graph's node tree and counts parent→child transitions. The returned model is a directly-follows graph (DFG) annotated with absolute and relative frequencies.
Parameters
| Parameter | Type | Description |
|---|---|---|
graphs | ExecutionGraph[] | Array of execution graphs (must not be empty). |
Returns
A process model with steps, transitions, and frequencies.
Throws
If graphs is empty.
Example
const model = discoverProcess(graphs);
for (const t of model.transitions) {
console.log(`${t.from} → ${t.to} (${(t.probability * 100).toFixed(0)}%)`);
}