How to change the direction of a specific edge in a DGLGraph instance

I’m working on simulating a graph and I found the message-passing paradigm very useful and I wish to inverse the direction of some edges based on specific conditions after every graph update

You can either construct new graphs after every graph update or first call remove_edges and then call add_edges in that case. You may want to check which approach is more efficient.

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