RENDER_API void routesplinesterm(void);
RENDER_API pointf* simpleSplineRoute (pointf, pointf, Ppoly_t, int*, int);
RENDER_API pointf *routepolylines(path* pp, int* npoints);
- RENDER_API int selfRightSpace (edge_t* e);
+ RENDER_API double selfRightSpace(edge_t *e);
RENDER_API shape_kind shapeOf(node_t *);
RENDER_API void shape_clip(node_t * n, pointf curve[4]);
RENDER_API void make_simple_label (GVC_t * gvc, textlabel_t* rv);
* so using the constant SELF_EDGE_SIZE is going to be wrong.
* Fortunately, the default nodesep is the same as SELF_EDGE_SIZE.
*/
-int
-selfRightSpace (edge_t* e)
-{
- int sw;
+double selfRightSpace(edge_t *e) {
+ double sw;
double label_width;
textlabel_t* l = ED_label(e);
make_LR_constraints(graph_t * g)
{
int i, j, k;
- int sw; /* self width */
int m0, m1;
double width;
int sep[2];
* Note that this would not only affect left and right
* positioning but may also affect interrank spacing.
*/
- sw = 0;
+ double sw = 0; // self width
for (k = 0; (e = ND_other(u).list[k]); k++) {
if (agtail(e) == aghead(e)) {
sw += selfRightSpace (e);