Closed DuanhaoranCC closed 2 years ago
Hi, thanks for your interest.
where rowptr is degree matrix (N * 1), col is edge_index, powptr and col' dim is not consistent, Why?
rowptr
is the index pointer for the sparse matrix (CSR-format), it is not necessary to be consistent with the shape of row or col. Actually, it has a shape of (len(row) +1, )
What do n_id and e_id represent?
n_id
is the id of nodes in the sampled random walks while e_id
is the edge id of corresponding walks. The official example returns walk
, which is exactly n_id
in our code. We need the e_id
to be returned to mask the edges sampled by random walks correspondingly so we use the implementation of torch_sparse
rather than that in PyG directly.
Let me know if you have any further questions :)
Hello, and thanks for your contribution. I need to seek guidance on a few questions.
where rowptr is degree matrix (N * 1), col is edge_index, powptr and col' dim is not consistent, Why?, What do n_id and e_id represent?
This is official example: