Why symmetrize the adj matrix?
Hi,
Thanks for a great package! I was wondering whether the current implementation actually supports directionality, since the adjacency matrix is symmetrized in prepare_page_rank_adjacency. This leads to the adjacency being symmetrical, and no consideration of directionality of the edges is taken into account. Am I wrong here, and if not, how would one best adapt to the case where the edges should actually be directed?
Thanks for a great package!
Hey 👋
Instead of providing the edge_index, you can also directly pass the adjacency matrix. The latter is not further normalized, but is checked by torch_ppr.utils.validate_adjacency.
For creating such matrices from edge indices, you can have a look at the individual steps in torch_ppr.utils.prepare_page_rank_adjacency.