function GG = ADJPOND(ADJ)
    [N,N] = size(ADJ); GG = zeros(N,N); S = sum(ADJ,2);
    for i =1:N 
        if S(i) == 0  then
            GG(i,:) = GG(i,:)
        else
            GG(i,:) = ADJ(i,:)/S(i)    
        end
    end
endfunction
