Adding reverse edges as new edge types #6029
Unanswered
tehranixyz
asked this question in
Q&A
Replies: 1 comment
-
rev_edge_index = edge_index[:, edge_type = xxx].flip([0])
edge_index = torch.cat([edge_index, rev_edge_index], dim=1) |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
I have a custom dataset of homogeneous graphs.
Each graph has five types of edges with edge attributes. (x, edge_index, edge_type, edge_attr)
Is there any way I can add reverse edges as a new type of edge?
Let's say I have edge types of 'friend', and 'relative'; I want the reverse edges to have types 'friend_rev' and 'relative_rev'.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions