def count_value
import bend-visgraph@2.0.0.0/src/report.bend as Reportimport 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)