-
The basic MessagePassing in Pyg helps update a node by connected edges and nodes. I'm looking for an easy way to update edge e_ji by using the edge features and indices of e_kj toward e_ji in a directed graph: nodes: (k), (j), and (i) (k)->(j)->(i) Alternatively, finding predecessor nodes of (j), which is (k)s in the above graph. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can perform |
Beta Was this translation helpful? Give feedback.
-
@rusty1s Thank you a lot! This is the clue for me. And, I can think of a example more, For a graph: a-b-c-d We may get the k-th order hop connections by doing 1 to (k-1) LineGraph times? |
Beta Was this translation helpful? Give feedback.
-
I found another way from MXMNet
But cannot understood the Using LineGraph, I found the directional information (order of indices) is not maintained. Define directional graph because I need the directed info. (k)->(j)->(I) (not undirected info. i.e., k-j-i)
which showing
I expected that the 2nd and 3rd columns must be the same. |
Beta Was this translation helpful? Give feedback.
You can perform
MessagePassing
on theLineGraph
to achieve that.