operators.filter
operators.filter
Section titled “operators.filter”Kind: function
Source: src/graphrefly/operators/_transform.py:69
Signature
Section titled “Signature”filter(g: Graph, src: Node[Any], p: Callable[[Any], Any], *, name: str | None = None, recipe: Recipe | None = None)Description
Section titled “Description”Send the DATA for which p holds, each in the array it came in; an array left with
no DATA is not sent (O-filter).
The behavior is the root’s operator contract: the operator contracts.