]> granicus.if.org Git - graphviz/commitdiff
stress_majorization_with_hierarchy: [nfc] replace a boolean with a C99 bool
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:17:18 +0000 (07:17 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:17:18 +0000 (07:17 -0800)
lib/neatogen/constrained_majorization.c

index 39ae808fdee600f2471bbcae5ed68fae5992b808..8adbe01e15caddbbd43db8cc5600ec4b95d13f40 100644 (file)
@@ -11,6 +11,7 @@
 #include <neatogen/digcola.h>
 #ifdef DIGCOLA
 #include <math.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <time.h>
 #include <stdio.h>
@@ -47,7 +48,7 @@ int stress_majorization_with_hierarchy(vtx_data * graph,      /* Input graph in spars
        *************************************************/
 
     int i, j, k;
-    boolean directionalityExist = FALSE;
+    bool directionalityExist = false;
     float *lap1 = NULL;
     float *dist_accumulator = NULL;
     float *tmp_coords = NULL;