operators.take
operators.take
Section titled “operators.take”Kind: function
Source: src/graphrefly/operators/_select.py:154
Signature
Section titled “Signature”take(g: Graph, src: Node[Any], n: int, *, name: str | None = None)Description
Section titled “Description”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.