dgl.max_edges

dgl.max_edges(graph, feat)[source]

Take elementwise maximum over all the values of edge field feat in graph

Parameters:
Returns:

The tensor obtained.

Return type:

tensor

Notes

If graph is a BatchedDGLGraph object, a stacked tensor is returned instead, i.e. having an extra first dimension. Each row of the stacked tensor contains the readout result of corresponding example in the batch. If an example has no edges, a zero tensor with the same shape is returned at the corresponding row.