Replies: 1 comment 5 replies
-
How about you use an x = GNN(x, edge_index)
x_src, x_dst = x[edge_index[0]], x[edge_index[1]]
edge_weight = MLP(torch.cat([x_src, x_dst], dim=-1)) For undirected (but weighted graphs), you may want to apply the Hadamard product ( |
Beta Was this translation helpful? Give feedback.
5 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.
Uh oh!
There was an error while loading. Please reload this page.
-
VGAE by default will reconstruct an adjacent matrix and the entries of which are simply the inner products of node latent embeddings.
I was wondering if there are already some efforts that allow the model to input and reconstruct a weighted adjacent matrix (which may contain pos/neg values)?
Any resources are appreciated.
Beta Was this translation helpful? Give feedback.
All reactions