Delete/remove or add edges


#1

Hi,

I was wondering if there was a function to remove/delete and add edges to a dgl graph, similar to the networkx remove/add_edges_from.

If not, is there a suggested way to perform such a task ? (e…g convert to networkx and back)

Thank you very much for your help


#2

Unfortunately, we don’t support delete/remove edges at current stage. However, you can use send_and_recv to control computation passing through specific edges. With this, you can “pretend” some of the edges are deleted. Hope this could help your case!


#3

Adding nodes/edges is supported. See here.