def tallied
import bend-visgraph@2.0.0.0/visgraph.bend as Visgraphimport Base
990def tallied(es: Edges, +both: Bool, +n: U32, c: Counts) -> Adjacency:
991 Counts{outs, ins} = c
992 with_total(es, both, Array.get(U32, starts(U32.to_nat(n), 0, Array.get(U32, outs, 0), 0), n), starts(U32.to_nat(n), 0, Array.get(U32, ins, 0), 0))