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
s
andd
from 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.