dgl.distributed.find_edges
- dgl.distributed.find_edges(g, edge_ids)[source]
Given an edge ID array, return the source and destination node ID array
sanddfrom a distributed graph.s[i]andd[i]are source and destination node ID for edgeeid[i].- Parameters:
g (DistGraph) – The distributed graph.
edges (tensor) – The edge ID array.
- Returns:
tensor – The source node ID array.
tensor – The destination node ID array.