function v = pagerank3()
D = [2 0 0 0 0 0 0 0 0 0;
    0 2 0 0 0 0 0 0 0 0;
    0 0 2 0 0 0 0 0 0 0;
    0 0 0 3 0 0 0 0 0 0;
    0 0 0 0 2 0 0 0 0 0; 
    0 0 0 0 0 1 0 0 0 0; 
    0 0 0 0 0 0 1 0 0 0;
    0 0 0 0 0 0 0 4 0 0;
    0 0 0 0 0 0 0 0 1 0; 
    0 0 0 0 0 0 0 0 0 4]
A= [0 0 1 0 0 0 0 0 0 0; 
    1 0 0 0 0 0 0 0 0 0; 
    1 0 0 0 0 0 0 1 0 0; 
    0 1 0 0 1 0 0 1 0 1; 
    0 0 0 1 0 0 0 0 0 1; 
    0 1 0 0 0 0 0 0 0 0; 
    0 0 0 0 1 1 0 0 0 1; 
    0 0 1 1 0 0 0 0 0 0; 
    0 0 0 0 0 0 0 1 0 1; 
    0 0 0 1 0 0 1 1 1 0]
G = A*inv(D)
[eigvec, eigval] = eig(G);
v = eigvec(:,1);
v = v/sum(v);