From 498543a32b189537d008904572838564f85efafe Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 17 Feb 2005 15:34:31 +0000 Subject: [PATCH] Unify code for getting expansion factor for overlap removal and spline routing; move some verbose messages lesser importance; separate node overlap removal into getting the parameter and applying it to allow fdp to use a prefix on "overlap" for 2 passes; fix some warnings. --- lib/neatogen/neatosplines.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index 055b6983d..4adb45b18 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -20,6 +20,7 @@ #endif #include "neato.h" +#include "adjust.h" #include "pathplan.h" #include "vispath.h" #ifndef HAVE_DRAND48 @@ -672,13 +673,9 @@ splineEdges(graph_t * g, int (*edgefn) (graph_t *, double, int), node_t *n; edge_t *e; double SEP; - char *str; Dt_t *map; - if ((str = agget(g, "sep"))) { - SEP = 1.0 + atof(str); - } else - SEP = 1.01; + SEP = expFactor (g); neato_set_aspect(g); /* find equivalent edges */ -- 2.40.0