#define flatindex(v) ((v)->u.low)
/* forward declarations */
-static bool medians(graph_t * g, int r0, int r1);
+static boolean medians(graph_t * g, int r0, int r1);
static int nodeposcmpf(node_t ** n0, node_t ** n1);
static int edgeidcmpf(edge_t ** e0, edge_t ** e1);
static void flat_breakcycles(graph_t * g);
static int GlobalMinRank, GlobalMaxRank;
static edge_t **TE_list;
static int *TI_list;
-static bool ReMincross;
+static boolean ReMincross;
/* dot_mincross:
* Minimize edge crossings
static void flat_search(graph_t * g, node_t * v)
{
int i, j;
- bool hascl;
+ boolean hascl;
edge_t *e, *rev;
adjmatrix_t *M = GD_rank(g)[ND_rank(v)].flat;
reorder(graph_t * g, int r, int reverse, int hasfixed)
{
int changed = 0, nelt;
- bool muststay, sawclust;
+ boolean muststay, sawclust;
node_t **vlist = GD_rank(g)[r].v;
node_t **lp, **rp, **ep = vlist + GD_rank(g)[r].n;
#define VAL(node,port) (MC_SCALE * (node)->u.order + (port).order)
-static bool medians(graph_t * g, int r0, int r1)
+static boolean medians(graph_t * g, int r0, int r1)
{
int i, j, j0, lm, rm, lspan, rspan, *list;
node_t *n, **v;
edge_t *e;
- bool hasfixed = FALSE;
+ boolean hasfixed = FALSE;
list = TI_list;
v = GD_rank(g)[r0].v;
static void expand_leaves(graph_t * g);
static void make_lrvn(graph_t * g);
static void contain_nodes(graph_t * g);
-static bool idealsize(graph_t * g, double);
+static boolean idealsize(graph_t * g, double);
#ifdef DEBUG
static void
{
double xf = 0.0, yf = 0.0, actual, desired;
node_t *n;
- bool scale_it, filled;
+ boolean scale_it, filled;
point sz;
rec_bb(g, g);
/* idealsize:
* set g->drawing->size to a reasonable default.
- * returns a bool to indicate if drawing is to
+ * returns a boolean to indicate if drawing is to
* be scaled and filled */
-static bool idealsize(graph_t * g, double minallowed)
+static boolean idealsize(graph_t * g, double minallowed)
{
double xf, yf, f, R;
point b, relpage, margin;