Skip to content
PACKAGES

operators.filter

Kind: function

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

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

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.