dgl.DGLHeteroGraph.subgraph

DGLHeteroGraph.subgraph(nodes, store_ids=True)

Alias of dgl.node_subgraph().