Skip to content
Discussion options

You must be logged in to vote

One way to utilize any GNN operator for directed graphs is to utilize two GNN layers for each edge direction. This way, each direction will not share any weights with the reverse one:

x = conv1(x, edge_index).relu() + conv2(x, edge_index.flip([0])).relu()

Let me know if that helps you!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pmoriano
Comment options

Answer selected by pmoriano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants