def METHOD_NAME(self, alg):
    G = nx.MultiGraph()
    G.add_edges_from([(1, 2), (1, 2), (1, 2), (2, 3), (2, 3), ("3", 3), ("3", 3)])
    answer = {
        1: 0.21066048614468322,
        2: 0.3395308825985378,
        3: 0.28933951385531687,
        "3": 0.16046911740146227,
    }
    p = alg(G)
    for n in G:
        assert p[n] == pytest.approx(answer[n], abs=1e-4)