Commit 7d08675e authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in eigenvector centrality for weighted graphs

parent 1c796549
......@@ -46,7 +46,7 @@ long double eigenvector(GraphInterface& g, boost::any w, boost::any c,
long double eig = 0;
run_action<>()
(g, bind<void>
(get_eigenvector(), _1, g.GetEdgeIndex(), _2,
(get_eigenvector(), _1, g.GetVertexIndex(), _2,
_3, epsilon, max_iter, ref(eig)),
weight_props_t(),
vertex_floating_properties())(w, c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment