powered by
This function runs a random walk with restart using two supported matrix representations.
RWR(boolSparceMat, transmat, restart, query, startvec, maxiters, thresh)
(bool): Boolean to indicate sparce Matrix or list matrix.
(sparce Matrix / list matrix): transition probabilities.
(float): probability of restart.
(vector): probability of restarting at all nodes.
(vector): initial probability of being at any node.
(int): maximum number of allowable iterations.
(float): threshold for L1 norm convergence.
list of 'iter':number of iterations, 'diff': L1 norm of difference, 'vec': converged probability distribution vector.
# NOT RUN { RWR(boolSparceMat=TRUE, transmat=transmat, restart=.3, query=c(rep(0.1,10),rep(0,5)), startvec=rep(1/15,15), maxiters=10, thresh=0.001) # }
Run the code above in your browser using DataLab