I have created an adjacency matrix in excel spreadsheet, and now I need to calculate the page rank of each page by using teleportation constant T=0.15 and using the following formula:
PR(W)=T/N+(1-T)(PR(W1)/O(W1)+PR(W2)/O(W2)+...PR(Wn)/O(WN))
I believe the pseudo-code to perform this action should be something like this:
x=formula
for i in range(len(matrix):
if i=1, then i==x
else
return 0
print(i?)
I know it is far from being perfect, and I am still trying to work this through.
I also suppose that I need firstly declare create a separate program code for the formula itself and declare its variables.
Would this be a a satisfying solution to implement this idea with Python or R? Or there is a better method of calculating page rank?
I came across various possible solution in the web, but they weren't very helpful in relation with my particular case.