How to get the src and dst node id given a edge id?

how to get the src and dst node id given a edge id? sry, I dont find it in docs.

Hi,

https://docs.dgl.ai/generated/dgl.DGLHeteroGraph.find_edges.html
https://docs.dgl.ai/generated/dgl.DGLGraph.find_edges.html

This is probably what you are looking for

3 Likes