I have a DGLGraph g which I am modifying (like removing edges and adding edges). Next, I am converting the DGLGraph to networks graph, clearing the original DGLGraph and re loading it from networks graph as below:
g is a DGLGraph
> nxg = g.to_networkx()
> g.clear()
> g.from_networkx(nxg)
It throws the following error
g.from_networkx(nxg)
File “/home/uday/anaconda3/envs/py36/lib/python3.6/site-packages/dgl/graph.py”, line 1373, in from_networkx
self._graph = graph_index.from_networkx(nx_graph, self.is_readonly)
File “/home/uday/anaconda3/envs/py36/lib/python3.6/site-packages/dgl/graph_index.py”, line 1128, in from_networkx
src[eid] = u
IndexError: index 13949 is out of bounds for axis 0 with size 13948