Skip to content
PACKAGES

operators.tap

Kind: function

Source: src/graphrefly/operators/_transform.py:89

tap(g: Graph, src: Node[Any], f: Callable[[Any], Any], *, name: str | None = None, recipe: Recipe | None = None)

Call f(v) once for every DATA and send the DATA on unchanged; what f returns is not read (O-tap).

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