Doubt regarding the size parameter in self.propagate #5780
-
I was trying to understand code in this repo and came across this line, which kind of confused me since they have used the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
The
size
argument just refers to the shape of the underlying adjacency matrix encoded byedge_index
. In most cases, this is simply(edge_index[0].max() + 1, edge_index[1].max())
. How we propagate information is independent of thesize
argument and is solely described byedge_index
. Since we assume that an undirected graph holds both directions withinedge_index
, that also means that "both partites" will receive messages.