dgl.DGLGraph.subgraph

DGLGraph.subgraph(nodes, store_ids=True)

Alias of dgl.node_subgraph().