def count_value

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

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

74# Degree counts or the degree distribution: `k count` or `k count/n` for
75# each degree k some node has, from the smallest k.
76def count_value(share: Bool, +v: U32, +n: U32) -> String:
77  match share:
78    case True{}:
79      F32.show(F32.div(U32.to_f32(v), U32.to_f32(n)))
80    case False{}:
81      U32.show(v)

Uses (7)

Used by (1)