mpad icon indicating copy to clipboard operation
mpad copied to clipboard

Why is the adjacency matrix transposed when the graph is directed?

Open mrvoh opened this issue 3 years ago • 0 comments

https://github.com/giannisnik/mpad/blob/5af1167e24cd5e0921d4894257148705d857eb06/mpad/utils.py#L128

Hi,

First of all, thanks for sharing your code! I have one specific question related to the line mentioned above: why exactly is the adjacency matrix transposed here? It seems to me that the sliding window over words performed in line 100 - 113 already creates the edges in the natural order of the text (i.e. left to right).

Thanks in advance!

mrvoh avatar Mar 11 '21 11:03 mrvoh