dgl.udf.EdgeBatch.edges

EdgeBatch.edges()[source]

Return the edges contained in this batch.

Returns:The edge tuple \((src, dst, eid)\). \(src[i], dst[i], eid[i]\) separately specifies the source node, destination node and the edge id for the ith edge in the batch.
Return type:tuple of three tensors