@testset "Eigenvector" begin
    g1 = smallgraph(:house)
    g2 = CycleDiGraph(4)

    for g in testgraphs(g1)
        y = @inferred(eigenvector_centrality(g))
        @test round.(y, 3) == round.([
            0.3577513877490464, 0.3577513877490464, 0.5298987782873977,
            0.5298987782873977, 0.4271328349194304
        ], 3)
    end
    for g in testdigraphs(g2)
        y = @inferred(eigenvector_centrality(g))
        @test round.(y, 3) == round.([0.5, 0.5, 0.5, 0.5], 3)
    end
end
