# dgl.DGLGraph.successors¶

DGLGraph.successors(v)

Return the successors of node v in the graph.

Node u is a successor of v if an edge (v, u) exist in the graph.

Parameters: v (int) – The node. Array of successor node IDs. tensor

Examples

The following example uses PyTorch backend.

>>> G = dgl.DGLGraph()