PageRank is a ranking method that assigns scores to web pages using the limitdistribution of a random walk on the web graph. A fibration of graphs is amorphism that is a local isomorphism of in-neighbourhoods, much in the same waya covering projection is a local isomorphism of neighbourhoods. We show that adeep connection relates fibrations and Markov chains with restart, aparticular kind of Markov chains that include the PageRank one as aspecial case. This fact provides constraints on the values that PageRank canassume. Using our results, we show that a recently defined class of graphs thatadmit a polynomial-time isomorphism algorithm based on the computation ofPageRank is really a subclass of fibration-prime graphs, which possesssimple, entirely discrete polynomial-time isomorphism algorithms based onclassical techniques for graph isomorphism. We discuss efficiency issues in theimplementation of such algorithms for the particular case of web graphs, in whichO(n) space occupancy (where n is the number of nodes) may be acceptable, butO(m) is not (where m is the number of arcs).