Commit 995c8809 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in eigenvector()

The routine wrongly returned 1/lambda instead of lambda, as the leading
eigenvalue of the adjacency matrix.
parent ca3c49f6
......@@ -116,7 +116,7 @@ struct get_eigenvector
}
}
eig = 1. / norm;
eig = norm;
}
};
......
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