Report.count_value: def of bend-visgraph@2.0.0.0 Import: import bend-visgraph@2.0.0.0/src/report.bend as Report Lines 74-81 of bend-visgraph@2.0.0.0/src/report.bend: https://jend.leeeet.dev/read.txt?path=bend-visgraph@2.0.0.0/src/report.bend&start_line=74&end_line=81 import Base # Degree counts or the degree distribution: `k count` or `k count/n` for # each degree k some node has, from the smallest k. def count_value(share: Bool, +v: U32, +n: U32) -> String: match share: case True{}: F32.show(F32.div(U32.to_f32(v), U32.to_f32(n))) case False{}: U32.show(v) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_f32