dgl.subgraph.DGLSubGraph.parent_nid

DGLSubGraph.parent_nid

Get the parent node ids.

The returned tensor can be used as a map from the node id in this subgraph to the node id in the parent graph.

Returns:The parent node id array.
Return type:Tensor