Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different type of relation representation #1

Open
lrh000 opened this issue Sep 20, 2019 · 2 comments
Open

Different type of relation representation #1

lrh000 opened this issue Sep 20, 2019 · 2 comments

Comments

@lrh000
Copy link

lrh000 commented Sep 20, 2019

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

@xhran2010
Copy link

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.

@mjDelta
Copy link
Owner

mjDelta commented Aug 28, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants