dgl.NodeFlow.map_to_parent_eid

NodeFlow.map_to_parent_eid(eid)[source]

This maps the child edge Ids to the parent Ids.

Parameters

nid (tensor) – The edge ID array in the NodeFlow graph.

Returns

The parent edge id array.

Return type

Tensor