Skip to content
Discussion options

You must be logged in to vote

You can adapt your calculate_inverse_distances by using the information in the batch. See the documentation. batch is a vector of int. It has as many elements as the number of rows of the data tensor x and indicates for each element x[i] which graph it belongs to. With this information you can avoid computing the distance between two nodes that are not from the same graph. Some methods from PyG might be here of help, I do not know.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@BhuyanMonami
Comment options

Comment options

You must be logged in to vote
1 reply
@BhuyanMonami
Comment options

Comment options

You must be logged in to vote
1 reply
@BhuyanMonami
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by BhuyanMonami
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