#include <neatogen/kkutils.h>
#include <neatogen/closest.h>
+#include <stdbool.h>
#include <stdlib.h>
/*****************************************
}
}
-static boolean extractMax(PairHeap * h, Pair * max)
+static bool extractMax(PairHeap * h, Pair * max)
{
if (h->heapSize == 0)
- return FALSE;
+ return false;
*max = h->data[0];
h->data[0] = h->data[h->heapSize - 1];
h->heapSize--;
heapify(h, 0);
- return TRUE;
+ return true;
}
static void insert(PairHeap * h, Pair edge)
#include <neatogen/bfs.h>
#include <neatogen/dijkstra.h>
#include <limits.h>
+#include <stdbool.h>
#include <stdlib.h>
/* #include <math.h> */
heapify(h, j, index, dist);
}
-static boolean extractMax(heap * h, int *max, int index[], Word dist[])
+static bool extractMax(heap * h, int *max, int index[], Word dist[])
{
if (h->heapSize == 0)
- return FALSE;
+ return false;
*max = h->data[0];
h->data[0] = h->data[h->heapSize - 1];
h->heapSize--;
heapify(h, 0, index, dist);
- return TRUE;
+ return true;
}
static void