Replies: 3 comments 3 replies
-
perm = torch.randperm(data.num_nodes)
data.x = data.x[perm]
data.y = data.y[perm]
data.edge_index = perm[data.edge_index] |
Beta Was this translation helpful? Give feedback.
2 replies
-
The original node numbers |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you. Another implementation:
|
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 want to shuffle the node order of cora data (edge_index, node label should be changed accordingly). Would you like to recommend a way to do it? It is easy to do node label shuffling accordingly, but changing edge_index seems more difficult. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions