ctrl->tscheme = late_quadtree_scheme(g, agfindgraphattr(g, "quadtree"), QUAD_TREE_NORMAL);
/* ctrl->method = late_mode(g, agfindgraphattr(g, "mode"), METHOD_SPRING_ELECTRICAL); */
ctrl->method = METHOD_SPRING_ELECTRICAL;
+ ctrl->beautify_leaves = mapBool (agget(g, "beautify"), FALSE);
ctrl->rotation = late_double(g, agfindgraphattr(g, "rotation"), 0.0, -MAXDOUBLE);
ctrl->edge_labeling_scheme = late_int(g, agfindgraphattr(g, "label_scheme"), 0, 0);
if (ctrl->edge_labeling_scheme > 4) {
pad = MAX(maxang - PI*0.166667*(nleaves-1), 0)*0.5;
ang1 += pad*0.95;
ang2 -= pad*0.95;
+ang1 = 0; ang2 = 2*PI; maxang = 2*PI;
assert(ang2 >= ang1);
step = 0.;
if (nleaves > 1) step = (ang2 - ang1)/(nleaves - 1);