relation-gcn-pytorch
relation-gcn-pytorch copied to clipboard
Different type of relation representation
Hi,
Thanks for your contribution. All relations among nodes are represented as 1. What if different type of relation?
Is it represented as different numbers in adjacency matrix? e.g. [[1, 0 , 2], [0, 0, 4], [0, 3, 0]]
Appreciate for any suggestion
Hi,
Thanks for your contribution. All relations among nodes are represented as 1. What if different type of relation?
Is it represented as different numbers in adjacency matrix? e.g. [[1, 0 , 2], [0, 0, 4], [0, 3, 0]]
Appreciate for any suggestion
Different relations correspond to diffrent adjacency matrixes.
I think you can try it with several adjacent matrices, e.g. relationship A with [[1, 0], [0, 0]] and relationship B with [[0, 0], [1, 0]]. Because I am afraid that entries in adjacent matrix represent relative weights, and if you try with [[1, 2], [0, 3]], it may assign a large weights to relationship 2 and 3.