Skip to content

A node is never wired to itself

The rule

Normative: this is the rule
  1. An edge whose source is present, non-empty and equal to its target MUST be refused with R12_EDGE_SELF at edge.{index}.
  2. This MUST hold whatever ports the two ends name, so wiring a node's own output into its own input is still refused.
  3. It MUST hold whether or not the named node exists; a self-edge on a node that was deleted also earns R8's two errors for a source and a target that name no node.
  4. An edge whose source is absent or empty MUST NOT be reported as a self-edge, even when its target is absent or empty too; R5.c and R8 own that case.

What it means

The check reads only the two node ids; it never looks at which ports the edge names. Wiring a node's own output into one of its own input ports looks like an ordinary connection in the editor, and even names two different ports, but it is still refused: a cycle of one is a cycle whichever ports it runs through.

Example

An edge from a node's own output port back into a different input port on the same node:

An edge from a node's output into its own inputrefused
{
  "id": "e1",
  "source": "n1",
  "sourceHandle": "n1-output-result",
  "target": "n1",
  "targetHandle": "n1-input-value"
}

Why

Recorded under OPEN-7, OPEN-25, OPEN-26.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · R12 · changed in spec 1.0