Get Started
Tutorials
API Reference
DGLGraph.
in_degree
Return the in-degree of node v.
v
Examples
>>> G = dgl.DGLGraph() >>> G.add_nodes(3) >>> G.add_edges([0, 0, 1], [1, 2, 2]) # (0, 1), (0, 2), (1, 2) >>> G.in_degree(2) 2
See also
in_degrees()