def degree

bend-lint-pack@0.1.1.0 · common.bend:426

import bend-lint-pack@0.1.1.0/common.bend as Common
import Base

426# The number of different defs of the program that `owner` has under it in `m` (the defs it uses,
427# for `edges`; the defs that use it, for `into`). 0 for what is not a def.
428def degree(+m: Map<&2, List<&2, String>>, +nodes: Set(), +owner: String) -> U32:
429  degree.go(has(nodes, owner), Edges.of(m, owner), nodes)

Uses (8)

Used by (2)