How to use Node neighborhood matrix instead of meta paths in HanConv? #7805
Replies: 3 comments 3 replies
-
@rusty1s please could you give us a suggestion or suggest a solution on how to use HANConv with this setting mentioned above? I think the code in the HANConv needs to be modified to make these changes. |
Beta Was this translation helpful? Give feedback.
-
Sorry for being absent over the past days. I am not sure how you would use |
Beta Was this translation helpful? Give feedback.
-
@rusty1s Thank you so much for addressing this and I appreciate your time. How do we use this K matrix approach with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Author,
Thanks for the great work. We are working on hypergraph implementation on TU Datasets. As part of our algorithm, we need to use HanConv. According to the documentation of HanConv class, it supports meta paths. However, we are not using meta paths instead we are employing a node neighborhood matrix. Which describes node connections in the graph based on the shortest distance we calculated between nodes. If the node distance between nodes is less than that threshold we consider it a neighbor of that node. And the NxN connection matrix describes nodes' connection in the graph where N is the number of nodes in the graph. And matrix has entries with 0s and 1s. If two nodes are connected based on the above method the entry between two nodei and nodej is set to 1. How can we use HanConv with this relationship and matrix? Basically, I think we need to encode each row as a meta path.
for example, if there are 5 nodes as follows:
matrix
-->
a1 a2 a3 a4 a5
a1 0 1 1 0 1
a2 1 0 0 0 1
a3 1 0 0 1 0
a4 0 0 1 0 1
a5 1 1 0 1 0
In the above matrix, in the first row, "a1" is connected with [a2, a3, a5], similarly, a2 is connected with [a1, a5], and so on.
so the first row has a meta path-like connection, and likewise other rows. Therefore, my question is how can we use HanConv with this setting? I hope I am clear. If not please let me know.
It has been recommended to move this to questions section, so I am posting here for insight and help.
Beta Was this translation helpful? Give feedback.
All reactions