Lets say, I have the below sample graph nodes and edges
edges - v_t, b_t
v_t
(A1,A2), (A1,A3), (A1,A4)
(B1,B2), (B1,B3)
b_t
(A1,B1)
I want to generate h_s and h_t dual embeddings, for instance h_s and h_t of A1 should look like below
h_s = features of A1 + features of connected v_t nodes A2, A3, A4
h_t = features of b_t B1 + features of B1’s connected v_t B2, B3
How to write a message function for this in dgl?