Skip to content
Discussion options

You must be logged in to vote

I think that's a great issue and something we haven't really thought to deeply about yet. One easy way to fix this would be to remove self-loops completely from your graph before inputting it into NeighborLoader, and then apply add_self_loops after each trimming stage. add_self_loops is a very fast op, and you shouldn't see any decrease in performance even if you apply it before each layer.

The better fix would be to deeply integrate it into our NeighborLoader C++ code, but we don't have any urgent plan to integrate this right now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ClaudMor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants