From: Matthew Fernandez Date: Thu, 13 Jan 2022 04:32:01 +0000 (-0800) Subject: force_directed_edge_bundling: remove useless '1*' X-Git-Tag: 3.0.0~69^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ec24c68965108802179978a04cb57b4e34246cc;p=graphviz force_directed_edge_bundling: remove useless '1*' --- diff --git a/lib/mingle/edge_bundling.cpp b/lib/mingle/edge_bundling.cpp index 64406264c..4004b64a7 100644 --- a/lib/mingle/edge_bundling.cpp +++ b/lib/mingle/edge_bundling.cpp @@ -535,8 +535,8 @@ static pedge* force_directed_edge_bundling(SparseMatrix A, pedge* edges, int max e2 = edges[ja[j]]; edge_attraction_force(a[j], e1, e2, force_a); } - fnorm_t = std::max(SMALL, norm(dim * (np - 2), &force_t.data()[1 * dim])); - fnorm_a = std::max(SMALL, norm(dim * (np - 2), &force_a.data()[1 * dim])); + fnorm_t = std::max(SMALL, norm(dim * (np - 2), &force_t.data()[dim])); + fnorm_a = std::max(SMALL, norm(dim * (np - 2), &force_a.data()[dim])); edge_length = e1->edge_length; for (j = 1; j <= np - 2; j++){