Closed guanshaoheng closed 1 month ago
maybe making some modifications to the function torch_geometric.utils.coalesce
can work
There is a transform RemoveDuplicatedEdges
that should in theory do this - is there additional functionality that you'd need?
As you mentioned, the transform just calls coalesce
: https://pytorch-geometric.readthedocs.io/en/latest/modules/utils.html#torch_geometric.utils.coalesce
🚀 The feature, motivation and pitch
Before removing duplicate edges, we can use this function to extract and inspect all the duplicates. This is particularly useful for designing the graph network and for debugging, as edges can easily become duplicated when selected by nodes. In calculations, these duplicate edges can impact the network’s predictions…
Alternatives
No response
Additional context
No response