def METHOD_NAME(self):
    """Eigenvector centrality: P3"""
    G = nx.path_graph(3)
    b_answer = {0: 0.5, 1: 0.7071, 2: 0.5}
    b = nx.eigenvector_centrality_numpy(G)
    for n in sorted(G):
        assert b[n] == pytest.approx(b_answer[n], abs=1e-4)
    b = nx.eigenvector_centrality(G)
    for n in sorted(G):
        assert b[n] == pytest.approx(b_answer[n], abs=1e-4)