getStats()
getStats(
graph):GraphStats
Defined in: graph-query.ts:229
Compute aggregate statistics for the execution graph.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The execution graph to analyse. |
Returns
Statistics including node counts by type and status, depth, duration, and failure counts.
Example
const stats = getStats(graph);
console.log(`${stats.totalNodes} nodes, ${stats.failureCount} failures`);