dgl.DGLGraph.parent

DGLGraph.parent

If current graph is a subgraph of a parent graph, return its parent graph, else return None.

Returns:The parent graph of current graph.
Return type:DGLGraph or None