def build

bend-visgraph@2.0.0.0 · visgraph.bend:845

import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph
import Base

845# The graph of `s` with the options `o`, with the edges ts2vg's `build`
846# makes. The natural and horizontal graphs run on one thread, and the
847# limited penetrable ones split their sweeps among every thread.
848def build(o: Options, s: Series) -> Graph:
849  Options{g, +dir, k, lo, hi, +limit} = o
850  Series{+n, ys, xs} = s
851  Graph{n, dir, chosen(U32.is_zero(limit), g, dir, k, lo, hi, limit, ys, xs, n)}

Uses (5)

Used by (0)

No other definition uses this definition.