Is there a good way to insert edges in a graph instance? #4614
Unanswered
bryanzhou008
asked this question in
Q&A
Replies: 1 comment
-
You can insert edged by concatenating them to your new_edges = torch.tensor([[0, 1, 2, 3], [1, 0, 3, 2]])
edge_index = torch.cat([edge_index, new_edges], 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.
-
I am puzzled as I couldn't find any online answers explaining this. Which leads me to wonder if this data type is not meant to be operated on in this manner?
Beta Was this translation helpful? Give feedback.
All reactions