def count_half
import bend-visgraph@2.0.0.0/visgraph.bend as Visgraphimport Base
893def count_half(present: Bool, +u: U32, +v: U32, c: Counts) -> Counts:
894 match present:
895 case True{}:
896 Counts{outs, ins} = c
897 Counts{bumped(Array.get(U32, outs, u), u), bumped(Array.get(U32, ins, v), v)}
898 case False{}:
899 c