Replies: 1 comment
-
I agree that the function is very difficult to understand. I suggest to check the output one by one via a simple example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know somebody already asked for clarifications about this function works, but I'm trying to understand what
triplets
does at a more basic level. I understand that for each directional messagem_ji
from source indexj
(row
) to target indexi
(col
) we need to consider messagesm_kj
i.e. all neighbors of the fixed neighborj
of target nodei
. Let's say that we have a simple graph with4
nodes and connectivity:I understand the assignment
row, col = edge_index # j->i
(source to target).Then (I suppose), an adjacency matrix is created by doing:
adj_t = SparseTensor(row=col, col=row, value=value, sparse_sizes=(num_nodes, num_nodes))
why do we transpose row and column here? Also, when we do:
What is the exact meaning of taking
adj_t[row]
in this context? And whynum_triplets
is calculated on top of this?Many thanks in advance and apologize if this was a bit trivial to ask.
Beta Was this translation helpful? Give feedback.
All reactions