Why do we add 'reverse edges' in hetero graph? #3976
-
I wish to know this in a detailed way. I do not know how it helps for the model as even tho it is a reverse edge, it is still a different edge. For example, ['user', 'watched', 'movie'] and ['movie'. 'watched-by', 'user'] are very similar but still different edges. How does that help to improve for some tasks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Reverse edge types are necessary to allow that every node types receives new information during message passing. For example, in a bipartite graph with |
Beta Was this translation helpful? Give feedback.
Reverse edge types are necessary to allow that every node types receives new information during message passing. For example, in a bipartite graph with
user
andmovie
types, and a single relationwatched
, message passing does only send information from users to movies, not the other way around. In that case, only movie embeddings are learned, and you would miss out on the information of users that watched similar movies.