-
I'm trying to use PyG's MetaPath2Vec and I have a question about this line: Why must each metapath be a 3-tuple? How can I specify longer metapaths, e.g. a metapath which has 5 items node_A --> Link A_A -> node_B --> link B_C --> node_C? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Feb 10, 2022
Replies: 2 comments 2 replies
-
Yes, that is well possible. Note that [
(author, writes, paper),
(paper, cites, paper),
(paper, written_by, author),
...
] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nabihach
-
I see, so the tuples together specify one metapath. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that is well possible. Note that
metapath
is a list of tuples, e.g.: