About add edge
#4998
-
Hi, I want to do edge add operation on my graph data. Is there any function to solve my problem? Best wish! |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Jul 17, 2022
Replies: 2 comments 1 reply
-
You can simply concatenate it to your edge_index = torch.cat([edge_index, new_edges], dim=1) |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can simply concatenate it to your edge_index = torch.cat([edge_index, new_edges], dim=1) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wubo2180
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can simply concatenate it to your
edge_index
: