Hi there,
when I try to apply find_edges()
on my graph positive_graph
that is generated by the dgl.EdgeDataLoader
, I get an error:
positive_graph.find_edges(561, 'signalling interaction')
Traceback (most recent call last):
...
File "<ipython-input-21-6472dba516d0>", line 1, in <module>
positive_graph.find_edges(561, 'signalling interaction_inverse')
File "/...python3.8/site-packages/dgl/heterograph.py", line 2903, in find_edges
raise DGLError('Invalid edge ID {:d}'.format(max_eid))
dgl._ffi.base.DGLError: Invalid edge ID 561
When I try it with the original DGLHeteroGraph I used, it works.
Why can I not access the node IDs from the positive_graph
? And could I instead access the node IDs from the Heterograph or do I need a mapping for that?