Skip to content
PACKAGES

operators.take

Kind: function

Source: src/graphrefly/operators/_select.py:154

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

Send the first n DATA and complete in the array of the nth; take(g, src, 0) completes on activation (O-take). n is an integer >= 0.

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