Software Engineering
New metric enables precise comparison of no-code workflows through graph matching
Researchers propose a semantic distance measure for evaluating workflow similarity in no-code systems, tested on thousands of real-world automation exports.
As no-code and agentic automation tools proliferate, the ability to systematically compare workflows has become increasingly important. Unlike simple text comparison, workflows contain typed operations, parameters, and connections that must be evaluated together. Researchers have now introduced a formal metric to solve this problem.
The Challenge of Workflow Comparison#
Traditional string-based comparison methods fail to capture the semantic structure of executable workflows. A workflow's value lies not in how it's written but in its operational graph—which nodes it contains, how they're typed, and how data flows between them. Existing tools lack a principled way to measure when two workflows are functionally equivalent or substantially different.
A Graph-Matching Solution#
The new approach treats workflows as attributed directed graphs and defines a semantic distance metric based on node matching and edge disagreement. The method works by finding an optimal partial one-to-one mapping between nodes in two workflows, penalizing both mismatched operations and unmatched nodes. Under a fixed type hierarchy and metric-compatible distance functions, this produces a formal metric on workflow graphs—with the guarantee that it respects mathematical properties like symmetry and the triangle inequality.
The researchers also developed a padded Hungarian algorithm that provides a scalable upper-bound solution, making the approach practical for real-world evaluation.
Real-World Validation#
The metric was tested against 4,705 public workflow exports from n8n (a popular no-code platform), encompassing 2,282 distinct workflow patterns, over 73,000 nodes, and 469 different node types. Across more than 32,000 complete evaluations, the results showed:
- Near-invariance to cosmetic changes: Surface-preserving transformations produced a mean distance of just 0.00001, confirming the metric ignores trivial formatting differences.
- Graded sensitivity: Major structural or type changes raised the mean distance to 0.584, showing clear discrimination between substantially different workflows.
- Strong correlation with manual assessment: On a panel of 796 workflows, edit count had a Spearman correlation of 0.520 with the metric, while workflows with similar intentions showed within-group correlations above 0.97.