DAG.
indegree_of
Return the indegree of node.
node
See also
outdegree_of()
Example
>>> import causaldag as cd >>> g = cd.DAG(arcs={(1, 2), (1, 3), (2, 3)}) >>> g.indegree_of(1) 0 >>> g.indegree_of(2) 2