}
#endif
+static void
+largeMinlen (int l)
+{
+ agerr (AGERR, "Edge length %d larger than maximum %u allowed.\nCheck for overwide node(s).\n", l, USHRT_MAX);
+ exit (1);
+}
+
/* connectGraph:
* When source and/or sink nodes are defined, it is possible that
* after the auxiliary edges are added, the graph may still have 2 or
e = NEW(edge_t);
e->tail = u;
e->head = v;
+ if (len > USHRT_MAX)
+ largeMinlen (len);
ED_minlen(e) = len;
ED_weight(e) = wt;
fast_edge(e);
* ED_dist contains the largest label width.
*/
m0 = MAX(m0, width + GD_nodesep(g) + ROUND(ED_dist(e)));
+ if (m0 > USHRT_MAX)
+ largeMinlen (m0);
ED_minlen(e0) = MAX(ED_minlen(e0), m0);
}
else if (!ED_label(e)) {