Skip to main content

getPathSignature()

getPathSignature(graph): string

Defined in: process-mining.ts:42

Produce a canonical string representation of a graph's execution path.

Performs a depth-first traversal, emitting type:name for each node. Children are sorted alphabetically by type:name to ensure deterministic output.

Parameters

ParameterTypeDescription
graphExecutionGraphThe execution graph.

Returns

string

A -separated path signature, or "" if the root is unresolvable.

Example

const sig = getPathSignature(graph);
// "agent:main→tool:fetch→tool:analyze"