Skip to content
Discussion options

You must be logged in to vote

Sorry for late reply:

Q1: With is_undirected=True, two things will happen:

  • edge_index in the output splits are guaranteed to be undirected as well.
  • edge_label_index only contains one direction of the link (instead of both directions). This explains why you get fewer labels back when setting is_undirected to True.

Q2: I don't understand what you mean by "formed between nodes in the original graph". Random links should be generated only between valid nodes in your graph.

Q3: Yes, it needs to be a COO tensor of the form [2, num_edges].

Replies: 1 comment 1 reply

Comment options

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

Answer selected by songsong0425
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