You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to RWR without weight. However, in "utils/reader.py", "weighted" is directly defined as True and so even if my edges are unweighted, "A = csr_matrix((np.ones(len(K), (I, J), shape=A.shape)))" gives error due to lack of weight. I solved the problem by giving them all same weight as default 1. In fact, it may be solved directly "utils/reader.py". weights argumant may be added as weights default True.
Thanks for having an interest in this repository! The edge list file of unweighted graphs should contain a pair of nodes per line without its weight (i.e., # format: source (int) \t target (int)), as described in README. Have you tried this intended format for your unweighted graph?
The reason why I set "weighted" as True at line 80 of reader.py is for the default case n=3 where n is the number of columns of the input file. If your file has two columns, then "weighted" will be set as False at line 84.
I have tried to RWR without weight. However, in "utils/reader.py", "weighted" is directly defined as True and so even if my edges are unweighted, "A = csr_matrix((np.ones(len(K), (I, J), shape=A.shape)))" gives error due to lack of weight. I solved the problem by giving them all same weight as default 1. In fact, it may be solved directly "utils/reader.py". weights argumant may be added as weights default True.
reader.txt
The text was updated successfully, but these errors were encountered: