Table of Contents

Class ChangesSimplifier

Namespace
Foundation.Data.Doublets.Cli
Assembly
Foundation.Data.Doublets.Cli.dll
public static class ChangesSimplifier
Inheritance
ChangesSimplifier
Inherited Members

Methods

Simplifies a list of changes by identifying chains of transformations. If multiple final states are reachable from the same initial state, returns multiple simplified changes. If a scenario arises where no initial or final states can be identified (no-ops), returns the original transitions as-is.

public static IEnumerable<(Link<uint> Before, Link<uint> After)> SimplifyChanges(IEnumerable<(Link<uint> Before, Link<uint> After)> changes)

Parameters

changes IEnumerable<(Link<uint> Before, Link<uint> After)>

List of tuples representing changes (before, after).

Returns

IEnumerable<(Link<uint> Before, Link<uint> After)>

Simplified list of changes from initial states to final states, or original transitions if no change is detected.