noncanonical(T.a: text, T.b: text) 🡒 T.c : boolean, process
true whenever a canonical representative for
T.a cannot be computed. The pairs
(T.a, T.b) are interpreted as graph edges with
T.a as the source and
T.b as the destination. The lack of representative happens when a circular path or a branching path gets detected.
table T = with [| as OldCode, as Replacement |] [| "x-00", "ax-00" |] [| "x-01", "ax-01" |] [| "x-02", "ax-02" |] [| "ax-00", "x-00" |] T.HasRepresentative = noncanonical(T.OldCode, T.Replacement) show table "" a1c4 with T.OldCode T.Replacement T.HasRepresentative
From a practical perspective, this process is intended to deal with code replacement (ex: SKU code replacement) as illustrated in the above example.