function [y,I,res]=iteratePageRank(P,c,v,x,I,res)

% one pagerank iteration
y=P*x;
y=c*y;
d=norm(x,1)-norm(y,1);
y=y+d*v;



% compute residual
if nargin>4
	res=[res residual(y,x)];
	if isempty(I)
		I=1;
	else
		I=[I I(end)+1];
	end
else
	I = 1;
end
%printIteration(I(end))
