def METHOD_NAME(self, alg):
    G = self.G
    p = alg(G, alpha=0.9, tol=1.0e-08)
    for n in G:
        assert p[n] == pytest.approx(G.pagerank[n], abs=1e-4)
    nstart = {n: random.random() for n in G}
    p = alg(G, alpha=0.9, tol=1.0e-08, nstart=nstart)
    for n in G:
        assert p[n] == pytest.approx(G.pagerank[n], abs=1e-4)