]> granicus.if.org Git - graphviz/commitdiff
stress_majorization_with_hierarchy: [nfc] use a C99 bool instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Dec 2021 16:30:40 +0000 (08:30 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Dec 2021 18:33:22 +0000 (10:33 -0800)
lib/neatogen/constrained_majorization.c

index 8adbe01e15caddbbd43db8cc5600ec4b95d13f40..1096bfc88193725732c25765bb91136394c13301 100644 (file)
@@ -81,7 +81,7 @@ int stress_majorization_with_hierarchy(vtx_data * graph,      /* Input graph in spars
     int step;
     float val;
     double old_stress, new_stress;
-    boolean converged;
+    bool converged;
     int len;
     int num_levels;
     float *hierarchy_boundaries;
@@ -357,7 +357,7 @@ int stress_majorization_with_hierarchy(vtx_data * graph,    /* Input graph in spars
     cMajEnv =
        initConstrainedMajorization(lap2, n, ordering, levels, num_levels);
 
-    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|)  */