dgl.NodeFlow.layer_in_degree

NodeFlow.layer_in_degree(layer_id)[source]

Return the in-degree of the nodes in the specified layer.

Parameters:layer_id (int) – The layer Id.
Returns:The degree of the nodes in the specified layer.
Return type:Tensor