double pmargin;
char* marg;
- if ((marg = agget(g, "sep"))) {
+ if ((marg = agget(g, "sep")))
pmargin = 1.0 + atof(marg);
- } else
+ else if ((marg = agget(g, "esep")))
+ pmargin = 1.0 + atof(marg)/SEPFACT;
+ else
pmargin = 1.1;
return pmargin;
}
edge_t *e;
double SEP;
Dt_t *map;
+ char* marg;
/* 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;
+ if ((marg = agget(g, "esep")))
+ SEP = 1.0 + atof(marg);
+ else
+ /* expFactor = 1 + "sep" value */
+ SEP = 1.0 + SEPFACT*(expFactor(g) - 1.0);
/* find equivalent edges */
map = dtopen(&edgeItemDisc, Dtoset);