]> granicus.if.org Git - graphviz/commitdiff
stress_majorization_cola: use a C99 for 'converged' instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 27 Dec 2021 03:04:12 +0000 (19:04 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 Jan 2022 16:04:04 +0000 (08:04 -0800)
lib/neatogen/constrained_majorization_ipsep.c

index 3c05ee476b4fecf356b46b2ad2b0585775ed3190..d52e9af6a5126b26a4428ef9c00e41fb6a7bcc25 100644 (file)
@@ -94,7 +94,7 @@ int stress_majorization_cola(vtx_data * graph,        /* Input graph in sparse represen
     int step;
     float val;
     double old_stress, new_stress = 0;
-    boolean converged;
+    bool converged;
     int len;
     double nsizeScale = 0;
     float maxEdgeLen = 0;
@@ -287,7 +287,7 @@ int stress_majorization_cola(vtx_data * graph,      /* Input graph in sparse represen
 
     lap1 = N_GNEW(lap_length, float);
 
-    for (converged = FALSE, iterations = 0;
+    for (converged = false, iterations = 0;
         iterations < maxi && !converged; iterations++) {
 
        /* First, construct Laplacian of 1/(d_ij*|p_i-p_j|)  */
@@ -393,7 +393,7 @@ int stress_majorization_cola(vtx_data * graph,      /* Input graph in sparse represen
                fprintf(stderr, "nsizescale=%f,iterations=%d\n",
                        nsizeScale, iterations);
            iterations = 0;
-           converged = FALSE;
+           converged = false;
        }