#if ((defined(HAVE_GTS) || defined(HAVE_TRIANGLE)) && defined(SFDP))
#include <neatogen/overlap.h>
#endif
+#include <stdbool.h>
#ifdef IPSEPCOLA
#include <vpsc/csolve_VPSC.h>
#include <neatogen/quad_prog_vpsc.h>
while (isspace((int)*s)) s++;
if (*s == '+') {
s++;
- pp->doAdd = 1;
+ pp->doAdd = true;
}
- else pp->doAdd = 0;
+ else pp->doAdd = false;
if ((i = sscanf(s, "%f,%f", &x, &y))) {
if (i == 1) y = x;
}
else { /* default */
pmargin.x = pmargin.y = DFLT_MARGIN;
- pmargin.doAdd = 1;
+ pmargin.doAdd = true;
}
if (Verbose)
fprintf (stderr, "Node separation: add=%d (%f,%f)\n",
}
else {
pmargin.x = pmargin.y = SEPFACT*DFLT_MARGIN;
- pmargin.doAdd = 1;
+ pmargin.doAdd = true;
}
if (Verbose)
fprintf (stderr, "Edge separation: add=%d (%f,%f)\n",
#include "geom.h"
#include <sparse/SparseMatrix.h>
+#include <stdbool.h>
#define DFLT_MARGIN 4 /* 4 points */
typedef struct {
float x, y;
- boolean doAdd; /* if true, x and y are in points */
+ bool doAdd; /* if true, x and y are in points */
} expand_t;
extern expand_t sepFactor(graph_t * G);