Skip to content
Discussion options

You must be logged in to vote

Please note that the mini-batch assigns new node IDs based on the sampled subgraph. As such, it is not expected that your edge_label_index matches with the original edge_label_index. The remapping can be performed via

src_n_id = sampled_data['recipient'].n_id
dst_n_id = sampled_data['donor'].n_id
row, col = sampled_data['recipient', 'match', 'donor'].edge_label_index
print(src_n_id[row])
print(dst_n_id[col])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SheidaMajouni
Comment options

Answer selected by SheidaMajouni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants