CSR vs CSC
#4248
Replies: 1 comment 5 replies
-
It is indeed confusing. In message passing, we generally need to make use of the transposed adjacency matrix to guarantee a message passing flow from source to destination nodes via Note that the CSR representation of a transposed matrix is the CSC representation of the original matrix. As such, when sampling, we make use of the CSC representation of the original adjacency matrix. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @rusty1s sorry need your help to clarify this line:
pytorch_geometric/torch_geometric/loader/utils.py
Line 43 in e4e43a9
To CSC seems to use CSR?
From what I can tell (but I haven't fully understood it yet) this is a convention confusion on my end: CSR and CSC are swapped depending on if we want to represent the adjacency matrix as (row, col) = link from row to col or the reverse.
Beta Was this translation helpful? Give feedback.
All reactions