]> granicus.if.org Git - graphviz/commitdiff
force_directed_edge_bundling: remove useless '1*'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 13 Jan 2022 04:32:01 +0000 (20:32 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 16:17:00 +0000 (08:17 -0800)
lib/mingle/edge_bundling.cpp

index 64406264c08ee7ab31cbeb20cc344a325f3a597c..4004b64a73b07d537fcd9d6d546d82dc32fb6345 100644 (file)
@@ -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++){