How to get a batch successor/predecessor nodes? thanks

hi! I have a question: If I have a tensor(a batch nodes ID), How can to get the successors/predecessors of these nodes? I just know that DGLHeteroGraph.successors/ DGLHeteroGraph.predecessors , but its only can get one node’s successor/predecessor everytime. what should I do? Thanks ~

You could use DGLGraph.in_edges or DGLGraph.out_edges.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.