Backprop through line graph

Hi,
I’m wondering in dgl can I first build a graph G, then transform G into the line graph G’,and then compute the loss from both G and G’ and then do the backprop?

If you just use G and G' for message passing, it should work.