Skip to content
PACKAGES

operators.pairwise

Kind: function

Source: src/graphrefly/operators/_compare.py:106

pairwise(g: Graph, src: Node[Any], *, name: str | None = None)

Send [previous, current] for every DATA from the second on, in the array of its second value; the first DATA of an activation only becomes the previous one (O-pairwise).

The behavior is the root’s operator contract: the operator contracts.