The method of masking edge #9094
Unanswered
StefanIsSmart
asked this question in
Q&A
Replies: 1 comment
-
mask = (edge_index[0] == node_id) & (edge_index[1] == node_id)
edge_index = edge_index[:, ~mask] |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, Some graph is directed (like [1,0],[0,1]), and I want to mask the double directed edges together randomly.
How could I do that? Is there any function?
Beta Was this translation helpful? Give feedback.
All reactions