def degrees

bend-visgraph@2.0.0.0 · visgraph.bend:870

import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph
import Base

870# The degree of each node of `g`, as ts2vg's `degrees`: the edges at the
871# node, in either direction.
872def degrees(g: Graph) -> Array<U32>:
873  Graph{+n, dir, es} = g
874  degrees.into(es, slots(n))

Uses (5)

Used by (0)

No other definition uses this definition.