dgl.subgraph.DGLSubGraph.map_to_subgraph_nid

DGLSubGraph.map_to_subgraph_nid(parent_vids)[source]

Map the node Ids in the parent graph to the node Ids in the subgraph.

Parameters:parent_vids (list, tensor) – The node ID array in the parent graph.
Returns:The node ID array in the subgraph.
Return type:tensor