Replies: 1 comment 1 reply
-
I think what I would do is create a observed_node_mask = ... # Node-level mask to check whether a node is observed
edge_mask = observed_node_mask[edge_index[0]] & observed_node_mask[edge_index[1]]
edge_index = edge_index[:, edge_mask] |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, is there already something implemented to create edges based on node types? For example, I have "observed" and "unobserved" nodes and want to create undirected edges with RadiusGraph between observed nodes, but only directed edges from observed to unobserved.
I am currently fiddling around with creating multiple subgraphs and filtering them, but this seems overly complicated to me.
EDIT: I might need to clarify that I am working with a homogeneous graph, i.e., I use a boolean mask that identifies nodes as observed/unobserved.
Beta Was this translation helpful? Give feedback.
All reactions