RoyZhengGao / edge2vec

Learning node representation using edge semantics
BSD 3-Clause "New" or "Revised" License
51 stars 22 forks source link

How to properly prepare input data set #7

Open akastrin opened 4 years ago

akastrin commented 4 years ago

Hi,

I'm a little bit confused on how to properly prepare input data. Suppose that I have two rows with the same nodes but different edge types: should I count them once or twice. The example is illustrated below:

1 4 1 1
1 4 2 1
1 6 1 2
1 7 1 3
2 7 2 4
2 8 2 5
3 9 3 6

If I understand the code correctly then the first two lines of the above data set should have the same edge ID. Is this correct?

Best, Andrej