Skip to main content

getCriticalPath()

getCriticalPath(graph): ExecutionNode[]

Defined in: graph-query.ts:99

Find the critical path: the longest-duration path from the root to any leaf node. Uses node duration (endTime - startTime) as the weight. Running nodes use Date.now() as a provisional endTime.

Parameters

ParameterTypeDescription
graphExecutionGraphThe execution graph to analyse.

Returns

ExecutionNode[]

Nodes ordered from root to the deepest leaf on the longest path.