void dot_layout(Agraph_t * g)
{
- start = clock();
-
setEdgeType (g, ET_SPLINE);
+#ifdef ASPECT
+ start = clock();
nextiter = -1;
+#endif
+
dot_init_node_edge(g);
+#ifdef ASPECT
printf("Target AR = ");
scanf("%lf", &targetAR);
nPasses++;
+#endif
dot_rank(g);
packiter += curIterations;
dot_position(g);
+#ifdef ASPECT
char response[100];
finish = clock();
totalCLK += finish - start;
start = clock();
} while (nextiter);
+#endif
/* dumpRanks (g); */
dot_compoundEdges(g);
dotneato_postprocess(g);
+#ifdef ASPECT
printf("Packing iterations=%d\n# of Passes=%d\n", packiter, nPasses);
printf("Total time = %0.3lf sec\n\n", totalCLK/CLOCKS_PER_SEC);
+#endif
}
}
}
+#ifdef ASPECT
double AR = (GD_bb(g).UR.x - GD_bb(g).LL.x)/(GD_bb(g).UR.y - GD_bb(g).LL.y);
printf("AR=%0.4lf\t Area= %0.4lf\t", AR, (double)(GD_bb(g).UR.x - GD_bb(g).LL.x)*(GD_bb(g).UR.y - GD_bb(g).LL.y)/10000.0);
printf("Dummy=%d\n", countDummyNodes(g));
}
else nextiter = 0;
printf("next#iter=%d\n", nextiter);
+#endif
}
static point resize_leaf(node_t * leaf, point lbound)
* cluster, and ND_rank(n) = the local rank offset if n is in
* a cluster. */
if (leader != n)
+#ifdef ASPECT
if (ND_rank(n) == 0)
+#endif
ND_rank(n) += ND_rank(leader);
if (GD_maxrank(g) < ND_rank(n))
attrsym_t* N_level;
#endif
edgelabel_ranks(g);
+#ifdef ASPECT
init_UF_size(g);
initEdgeTypes(g);
+#endif
collapse_sets(g,g);
/*collapse_leaves(g); */
class1(g);
if ((N_level = agfindattr(g->proto->n, "level")))
setRanks(g, N_level);
else
+#endif
+#ifdef ASPECT
+#else
+ rank1(g);
#endif
expand_ranksets(g);
cleanup1(g);