relation-gcn-pytorch icon indicating copy to clipboard operation
relation-gcn-pytorch copied to clipboard

Different type of relation representation

Open lrh000 opened this issue 6 years ago • 2 comments
trafficstars

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

lrh000 avatar Sep 20 '19 06:09 lrh000

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.

xhran2010 avatar Aug 28 '20 03:08 xhran2010

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.

mjDelta avatar Aug 28 '20 11:08 mjDelta