Get Started
Model Tutorials
API Reference
Notes
DGLGraph.
out_degree
Return the out-degree of node 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.out_degree(0) 2
See also
out_degrees()