dgl.NodeFlow.layer_parent_nid

NodeFlow.layer_parent_nid(layer_id)[source]

Get the node Ids of the parent graph in the specified layer

layer_parent_nid(-1) returns seed vertices for this NodeFlow.

Parameters

layer_id (int) – The layer to get the node Ids.

Returns

The parent node id array.

Return type

Tensor