PageRank handles both these cases and everything in between by recursively propagating weightsthrough the link structure of the web
Another justification of the PageRank algorithm is that hyperlinks influence the index of a page. For example, if a page is referred to by multiple other pages (well cited), then it's deemed important and will have a higher PageRank.