Eigenvector centrality of a tree
I am trying to calculate the eigenvector centrality of the nodes of a tree but it does not work with graph-tool. It doesn't give any errors, but it feels like I'm running an infinite loop.
I am using the 2.37 version, and this is what I tried to run:
graph = gt.price_network(50, 1, directed=False)
gt.eigenvector(graph)
There's no problem if the m parameter of the model is at least 2, but with m=1 it freezes for me. It also does not work on this simple tree:
graph = gt.Graph(directed=False)
graph.add_edge_list([(0,1), (1,2), (2,3), (1,4)])
gt.eigenvector(graph)