operators.valve
operators.valve
Section titled “operators.valve”Kind: function
Source: src/graphrefly/operators/_gate.py:45
Signature
Section titled “Signature”valve(g: Graph, src: Node[Any], control: Node[Any], *, name: str | None = None)Description
Section titled “Description”Send src’s DATA while control’s value is True and drop it otherwise; it
starts closed, and reopening replays nothing (O-valve).
The behavior is the root’s operator contract: the operator contracts.