Skip to content
PACKAGES

operators.map

Kind: function

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

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

Send f(v) for every DATA v of src, one output array for each input array (O-map). Given a recipe that builds f, it can be restored.

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