Assigning the same features for the pair of edges with opposite directions

Hi, community,

I’m wondering the most efficient and handy way for assigning the same edge features
to the pair of edges directed oppositely. To be more specific, considering the directed graph,
I want to assign the same feature to the edges between the two nodes.

In this case, what will be the best practice?


this is all you want. dgl.add_reverse_edges — DGL 0.7.2 documentation. remember to set copy_edata=True

1 Like

Thanks for the comment :slight_smile: