operators.reduce
operators.reduce
Section titled “operators.reduce”Kind: function
Source: src/graphrefly/operators/_accumulate.py:102
Signature
Section titled “Signature”reduce(g: Graph, src: Node[Any], f: Reducer, seed: object, *, name: str | None = None, recipe: Recipe | None = None)Description
Section titled “Description”Accumulate as :func:scan does and send nothing until src completes; then send
the result with COMPLETE in one array. An empty source gives seed (O-reduce).
The behavior is the root’s operator contract: the operator contracts.