dgl.DGLGraph.parent_eid

DGLGraph.parent_eid

Get the parent edge ids.

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

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

Notes

The parent edge id information is stored in _ID field in the edge frame of the graph, so please do not manually change this field.