Deduplicates Tag nodes in a changeset against both the existing graph and other tags within the same batch.
Tags are matched by normalized label (lowercase + trim). When a duplicate is found, the new tag is removed and all links referencing it are rewritten to point to the existing tag.
Summary
Functions
Deduplicates Tag nodes in the changeset against both the batch and the existing graph.
Functions
@spec deduplicate( Mnemosyne.Graph.Changeset.t(), keyword() ) :: {:ok, Mnemosyne.Graph.Changeset.t()} | {:error, term()}
Deduplicates Tag nodes in the changeset against both the batch and the existing graph.