This PR changes self loops for HeteroGraph to return g instead of throwing error if src != tgt, as in reality in that case graph doesn't change. This refinement would allow us avoid trycatches or similar mechanism when dealing with conv layers for heterographs.
Also, this unblocks https://github.com/CarloLucibello/GraphNeuralNetworks.jl/pull/367
This PR changes self loops for HeteroGraph to return g instead of throwing error if src != tgt, as in reality in that case graph doesn't change. This refinement would allow us avoid trycatches or similar mechanism when dealing with conv layers for heterographs. Also, this unblocks https://github.com/CarloLucibello/GraphNeuralNetworks.jl/pull/367