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

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

Open
mrvoh opened this issue Mar 11, 2021 · 0 comments
Open

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

mrvoh opened this issue Mar 11, 2021 · 0 comments

Comments

@mrvoh
Copy link

mrvoh commented Mar 11, 2021

A = A.transpose()

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!

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

1 participant