Mutlti edge in edge ids

When graph has multi edge between two nodes, graph.edge_ids(u,v) only return one edge.


I think dgl should give users warning if the graph has multi edges but set the return_uv = False

1 Like

Hi, we actually have considered this option before. The major concern is the cost for checking multigraph is not negligible. I agree that multigraph is quite a unique case that users should pay attention to when processing graph data. We will emphasize that in our user guide and tutorial on processing and preparing graph dataset.

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