From 432e87035daf20a2c7da0d633c1244a7b7a0f692 Mon Sep 17 00:00:00 2001
From: erg <devnull@localhost>
Date: Mon, 4 Apr 2005 21:24:33 +0000
Subject: [PATCH] Separate SEP factor used to expand nodes during spline
 generation from the one used during overlap removal. If they are they same,
 and overlap removal is fairly tight, spline generation will detect that nodes
 will still overlap and revert to line segments.

---
 lib/neatogen/neatosplines.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c
index bb5d084a7..dc91eeff4 100644
--- a/lib/neatogen/neatosplines.c
+++ b/lib/neatogen/neatosplines.c
@@ -688,7 +688,12 @@ splineEdges(graph_t * g, int (*edgefn) (graph_t *, double, int),
     double SEP;
     Dt_t *map;
 
-    SEP = expFactor (g);
+    /* This value should be independent of the sep value used to expand
+     * nodes during adjustment. If not, when the adjustment pass produces
+     * a fairly tight layout, the spline code will find that some nodes
+     * still overlap.
+     */
+    SEP = 1.01;
     neato_set_aspect(g);
 
     /* find equivalent edges */
-- 
2.40.0