def degree_counts.from

bend-visgraph@2.0.0.0 · src/report.bend:102

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

102def degree_counts.from(empty: Bool, +share: Bool, +n: U32, d: Array<U32>) -> String:
103  match empty:
104    case True{}:
105      ""
106    case False{}:
107      degree_counts.text(share, n, count_loop(U32.to_nat((n - 1 : U32)), Array.get(U32, d, 0), 0, VG.slots(n)))

Uses (10)

Used by (1)