Skip to main content

getStats()

getStats(graph): GraphStats

Defined in: graph-query.ts:229

Compute aggregate statistics for the execution graph.

Parameters​

ParameterTypeDescription
graphExecutionGraphThe execution graph to analyse.

Returns​

GraphStats

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`);