def report.sized

bend-visgraph@2.0.0.0 · bend_visgraph.bend:197

import bend-visgraph@2.0.0.0/bend_visgraph.bend as BendVisgraph
import Base
import bend-visgraph@2.0.0.0/visgraph.bend as VG
import bend-visgraph@2.0.0.0/src/report.bend as Report

197# x as the index is an F32, which holds every index below 2^24 exactly.
198def report.sized(too_long: Bool, +g: VG.Visibility, +dir: VG.Direction, +k: VG.Weight, +limit: U32, +mode: Mode, rev: List<&2, F32>, +n: U32) -> Outcome:
199  match too_long:
200    case True{}:
201      Err{"bend_visgraph takes at most 16777216 values, since x is the index as an F32"}
202    case False{}:
203      report.built(only_degrees(mode) && Report.is_weighted(k), g, dir, k, limit, mode, rev, ByIndex{}, n)

Uses (14)

Used by (1)